linux yum安装rar时,可能会出现无资源的错误,只需把配置好资源即可,具体操作如下:
1.# vi /etc/yum.repos.d/dag.repo
2.将以下内容写入文件中
[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
3.进行yum安装,yum -y install rar,完成后即可使用
安装rar的时候可能会出现错误:
1.检查DNS是不是正常,pping www.baidu.com
原文:http://www.cnblogs.com/qlong8807/p/4976607.html