在AWS Amazon Linux EC2实例上安装neofetch与screenfetch问题咨询
Amazon Linux 系统EC2实例安装neofetch、screenfetch操作步骤
前置依赖安装
执行以下命令更新yum缓存并安装必须的依赖组件:sudo yum update -y && sudo yum install git bash -y
安装neofetch
- 克隆项目源码到本地:
git clone https://github.com/dylanaraps/neofetch.git - 进入源码目录执行安装:
cd neofetch && sudo make install - 验证安装:执行
neofetch即可输出系统信息,代表安装成功
安装screenfetch
- 克隆项目源码到本地:
git clone https://github.com/KittyKatt/screenFetch.git - 进入源码目录配置可执行文件:
cd screenFetch && sudo cp screenfetch-dev /usr/bin/screenfetch && sudo chmod +x /usr/bin/screenfetch - 验证安装:执行
screenfetch即可输出系统信息,代表安装成功
可选后续操作
安装完成后如果不需要保留源码文件,可执行以下命令删除:rm -rf ~/neofetch ~/screenFetch
如果需要卸载两款工具,执行对应命令即可:
- 卸载neofetch:
sudo rm -rf /usr/bin/neofetch /usr/share/man/man1/neofetch.1 - 卸载screenfetch:
sudo rm /usr/bin/screenfetch
内容的提问来源于stack exchange,提问作者HARSHAL RATHORE
相关产品推荐
相关产品推荐

