A-A+

centos上yum安装rar/unrar

2013年02月05日 综合技术 暂无评论 阅读 4,831 次

centos上如何yum安装rar/unrar?

默认yum找不到unrar的安装文件?

[root@hello ~]# yum install unrar
centos                                                                                                                 | 2.8 kB     00:00    
updates                                                                                                                | 3.4 kB     00:00    
Setting up Install Process
Parsing package install arguments
No package unrar available.
Nothing to do

解决办法

vi /etc/yum.repos.d/dag.repo

添加如下内容:

[dag]

name=Dag RPM Repository for Red Hat Enterprise Linux

baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag

gpgcheck=1

enabled=1

gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

然后yum -y install rar unrar即可

 

给我留言