1.安装Htop工具的第一步是启用EPEL存储库。

# dnf install https://dl.Fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

安装EPEL储存库后,请更新系统。

# dnf update

linux系统yum方式安装htop命令[转]

 linux系统yum方式安装htop命令[转]

 2.要安装htop工具,只需运行以下命令:

# dnf install htop

安装完成后,可以通过运行命令找到有关htop的更多信息。

# dnf info htop

linux系统yum方式安装htop命令[转]

 

 linux系统yum方式安装htop命令[转]

 3.要启动htop,只需运行命令。

# htop

linux系统yum方式安装htop命令[转]

 


 

CentOS下为yum加入rpmForge源,使用yum安装htop 

为CentOS增加rpmForge软件源

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.3.4-1.el3.rf.x86_64.rpm
rpm -Uvh rpmforge-release-0.3.4-1.el3.rf.x86_64.rpm
 

命令执行后/etc/yum.repos.d/下生成两个文件 

mirrors-rpmforge rpmforge.repo

之后直接 yum -y install htop 即可

 

相关文章: