CentOS – yum htop install

If you try to install via yum, you may get the error below. If you get such error, you need to download RPM.

[html]
root@vmi30970 [~]# yum install htop
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.atlanticmetro.net
* extras: mirror.atlanticmetro.net
* updates: mirror.atlanticmetro.net
No package htop available.
Error: Nothing to do
[/html]

How to find the version number of CentOS?

cat /etc/centos-release

How to know Linux 32-bit or 64-bit?

uname -p

Install RPM for CentOS 5.x

32-BIT

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i686.rpm

rpm -Uhv rpmforge-release*.rf.i386.rpm

64BIT

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm
rpm -Uhv rpmforge-release*.rf.x86_64.rpm

Install RPM for CentOS 6.x

32-BIT

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

rpm -Uhv rpmforge-release*.rf.i386.rpm

64BIT

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

rpm -Uhv rpmforge-release*.rf.x86_64.rpm

Alternative
wget http://repository.it4i.cz/mirrors/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

Install RPM for CentOS 7.x

http://ftp.riken.jp/Linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

Now you can install htop

[html]yum install htop[/html]