Skip to content
言之灵 edited this page Aug 16, 2018 · 11 revisions

这个页面将指导你安装neofetch并运行在你的系统上 .

最先想到和最普遍的安装方式是下载或者克隆最近版本并执行Makefile安装

内容表格

普通安装

最近版本

1.下载最近版本 - https://github.com/dylanaraps/neofetch/releases/latest 2. 执行 make install 在脚本目录中去执行安装脚本. - El Capitan: make PREFIX=/usr/local install - Haiku: make PREFIX=/boot/home/config/non-packaged install - OpenIndiana: gmake install - MinGW/MSys: make -i install - NOTE: 必须以ROOT权限运行.

最新的Git主分支

  1. Git clone 这个仓库.
    • git clone https://github.com/dylanaraps/neofetch
  2. 更改到 neofetch的工作目录.
    • cd neofetch
  3. 使用 Makefile 安装 neofetch .
    • make install
    • El Capitan: make PREFIX=/usr/local install
    • Haiku: make PREFIX=/boot/home/config/non-packaged install
    • OpenIndiana: gmake install
    • MinGW/MSys: make -i install
    • NOTE: You may have to run this as root.

NOTE: Neofetch 可以使用 make uninstall轻松的卸载. 这将在你的系统中移除 所有的.

NOTE: 你可以在系统的任意目录下执行 neofetch, 所有的 makefile 都会把文件移动到合理的位置. Makefile是一个可选的.

OS/发行版-packages

这一小节列出 neofetch 为明确的 OS/发行版 制作的包 .

Alpine Linux

Alpine Linux v3.8 和更高版本

  1. 更新仓库
    • apk update
  2. 安装包
    • apk add neofetch

Android (Termux)

Neofetch 是 Termux's 默认仓库.

  1. 更新仓库
    • sudo apt-get update
  2. 安装包
    • sudo apt-get install neofetch

Arch

Neofetch 一个有效的官方仓库.

  • 安装包
    • pacman -S neofetch

BunsenLabs

Neofetch 一个有效的官方仓库.

1.更新仓库 - sudo apt-get update 2. 安装包 - sudo apt-get install neofetch

CRUX

  1. 安装 git and the git ports(8) driver
    • sudo prt-get depinst git
  2. 添加 6c36-git 仓库
    • sudo wget -O /etc/ports/6c37-git.git "https://raw.githubusercontent.com/6c37/cross/master/git-driver/6c37-git.git"
  3. 同步仓库
    • sudo ports -u
  4. 用可选的text编辑器把仓库增加到 /etc/prt-get.conf
    • prtdir /usr/ports/6c37-git
  5. 安装包
    • sudo prt-get depinst neofetch

或者可以用这个端口替代 port:

  1. 下载 port
    • wget -O ~/work/neofetch/Pkgfile "https://raw.githubusercontent.com/6c37/crux-ports-git/3.2/neofetch/Pkgfile"
  2. Build 包
    • fakeroot pkgmk -d
  3. 安装包
    • sudo pkgadd neofetch#git-*.pkg.tar.gz

Debian

Stretch / Sid (Unstable)

Neofetch 是一个 Debian Stretch/Sid's 官方仓库.

  1. 更新仓库
    • sudo apt-get update
  2. 安装包
    • sudo apt-get install neofetch

NOTE: Debian stretch 仓库仅包括 2.0.2版本.

NOTE2: 第三方的仓库已经被弃用 如果你想在 Debian stable 对 neofetch 保持更新, 你需要从 unstable 版本手动安装新包 或者直接从git 仓库里下载,它包括在单独的文件夹里 .

Fedora / RHEL / CentOS / Mageia

NOTE: 如果你使用 RHEL/CentOS, 不要用 dnf , 用 yum.

  1. 确认你已经安装了 dnf-plugins-core
  2. 开启COPR仓库
    • sudo dnf copr enable konimex/neofetch
  3. 安装包
    • sudo dnf install neofetch

或者(二选一):

  1. 如果你使用 RHEL/CentOS, 确认你已经安装了 epel-release
  2. 获取这个仓库文件
  • curl -o /etc/yum.repos.d/konimex-neofetch-epel-7.repo https://copr.fedorainfracloud.org/coprs/konimex/neofetch/repo/epel-7/konimex-neofetch-epel-7.repo
    • NOTE: 如果你使用 Fedora, 更改 epel-7 选项为 fedora-23 或者是你的 Fedora 版本 . 但是如果你用 RHEL/CentOS 6, 改为 epel-6.
  1. 安装包
    • sudo dnf install neofetch

Gentoo / Funtoo

你可以从 Gentoo/Funtoo官方仓库安装 app-misc/neofetch .

安装git 版本的neofetch, 使用 =app-misc/neofetch-9999 安装.

GoboLinux

可以官方安装

  • sudo Compile neofetch

iOS

  1. 添加 http://dylanaraps.com/repo 到你的 cydia 源.
  2. 通过cydia安装 neofetch .

macOS (Homebrew)

  1. 通过Homebrew安装 neofetch
    • brew install neofetch

NixOS

从官方仓库开始安装

  • sudo nix-env -i neofetch

Slackware

SlackBuilds下载文件 并且遵从 这个指导.

Solus

您可以在System Software> System Utilities下的软件中心找到neofetch,或输入sudo eopkg it neofetch

Ubuntu

Ubuntu 17.04 和更高版本

从官方仓库安装

  1. 更新仓库
    • sudo apt update
  2. 安装包
    • sudo apt install neofetch

Ubuntu 16.10 或更低版本

  1. 添加 PPA
    • sudo add-apt-repository ppa:dawidd0811/neofetch
  2. 更新仓库
    • sudo apt update
  3. 安装包
    • sudo apt install neofetch

Ubuntu daily builds

此PPA包含直接来自主分支的每日构建的neofetch

  1. 添加 PPA
    • sudo add-apt-repository ppa:dawidd0811/neofetch-daily
  2. 更新仓库
    • sudo apt update
  3. 安装包
    • sudo apt install neofetch

Void Linux

从官方仓库安装

  • sudo xbps-install -S neofetch