Installing rar/unrar On CentOS 6

Open up ssh client and connect to the server as root user.

For 32bit:

For 64bit:

Install DAG’s GPG key:
rpm --import

If you get an error message like the following the key has already been imported:
[error]error: key 1 import failed.[/error]

Verify the package you have downloaded for 32bit:
rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Verify the package you have downloaded for 64bit:
rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Install the package for 32bit:
rpm -i rpmforge-release-0.5.2-2.el5.rf.i386.rpm

Install the package for 64bit:
rpm -i rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

Now install Rar and Unrar:
yum install rar unrar

Reboot your server:
shutdown -r now