1. 为什么要安装 neofetch ?
  • 查看系统信息,如系统版本、内核版本、CPU、内存等信息
  • 便于截图装X,如下
    v2-e82a34dc48a1f41635ebc2986c31d1ce_1440w
  1. 安装第一步,去官网查找信息
  • 官网地址可自行百度/谷歌,https://github.com/dylanaraps/neofetch/wiki/Installation
  • 上述wiki带有不同系统上的安装指南,本文以 CentOS 为例
  • 所有操作系统自带软件源内无此软件的,安装步骤大致为:添加软件源、导入密钥、刷新包管理器缓存、使用包管理器安装该软件
  1. 基于 CentOS 的安装步骤如下
    3.1. 安装 epel-release
yum install epel-release
or
dnf install epel-release

3.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

3.3. 使用包管理器安装 neofetch

yum install neofetch
  1. 运行 neofetch
neofetch