1.首先,在Centos6.7上启用epe版本
[root@zisefeizhu ~]# yum -y install epel-release
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
解决依赖关系
--> 执行事务检查
---> Package epel-release.noarch 0:6-8 will be 安装
--> 完成依赖关系计算
依赖关系解决
=======================================================================================
软件包 架构 版本 仓库 大小
=======================================================================================
正在安装:
epel-release noarch 6-8 extras 14 k
事务概要
=======================================================================================
Install 1 Package(s)
总下载量:14 k
Installed size: 22 k
下载软件包:
epel-release-6-8.noarch.rpm | 14 kB 00:00
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装 : epel-release-6-8.noarch 1/1
Verifying : epel-release-6-8.noarch 1/1
已安装:
epel-release.noarch 0:6-8
完毕!
2.使用yum install 命令安装Centos htop
[root@zisefeizhu~]# yum -y install htop
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.ustc.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
解决依赖关系
--> 执行事务检查
---> Package htop.x86_64 0:1.0.3-1.el6 will be 安装
--> 完成依赖关系计算
依赖关系解决
=======================================================================================
软件包 架构 版本 仓库 大小
=======================================================================================
正在安装:
htop x86_64 1.0.3-1.el6 epel 83 k
事务概要
=======================================================================================
Install 1 Package(s)
总下载量:83 k
Installed size: 178 k
下载软件包:
htop-1.0.3-1.el6.x86_64.rpm | 83 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <[email protected]>
Package: epel-release-6-8.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装 : htop-1.0.3-1.el6.x86_64 1/1
Verifying : htop-1.0.3-1.el6.x86_64 1/1
已安装:
htop.x86_64 0:1.0.3-1.el6
完毕!
3.执行htop命令
[root@zisefeizhu ~]# htop
CPU[||| 0.7%] Tasks: 93, 91 thr; 1 running
Mem[||||||||||||||||||||||||280/981MB] Load average: 0.14 0.08 0.11
Swp[| 1/1023MB] Uptime: 09:08:47
PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
33870 root 20 0 109M 1656 1196 R 5.9 0.2 0:00.38 htop
1 root 20 0 19356 1340 1040 S 0.0 0.1 0:01.59 /sbin/init
548 root 16 -4 10896 840 408 S 0.0 0.1 0:00.41 /sbin/udevd -d
1508 root 16 -4 27596 712 584 S 0.0 0.1 0:00.04 auditd
1507 root 16 -4 27596 712 584 S 0.0 0.1 0:00.11 auditd
1542 root 20 0 249M 1168 888 S 0.0 0.1 0:00.04 /sbin/rsyslogd -i /var
1544 root 20 0 249M 1168 888 S 0.0 0.1 0:00.03 /sbin/rsyslogd -i /var
1545 root 20 0 249M 1168 888 S 0.0 0.1 0:00.00 /sbin/rsyslogd -i /var
1541 root 20 0 249M 1168 888 S 0.0 0.1 0:00.11 /sbin/rsyslogd -i /var
1592 rpc 20 0 18976 656 560 S 0.0 0.1 0:00.12 rpcbind
1612 dbus 20 0 22300 1804 888 S 0.0 0.2 0:01.50 dbus-daemon --system