系统环境:CentOs6.3 X86_64
问题:默认CentOs6.3不能使用Yum自动安装Unrar
[root@ /]# yum install unrar
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
* base: centos.mirror.cdnetworks.com
* extras: centos.mirror.cdnetworks.com
* updates: centos.mirror.cdnetworks.com
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
extras/primary_db | 9.7 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 3.9 MB 00:07
Setting up Install Process
No package unrar available.
Error: Nothing to do
http://blog./?p=240 |
目的:让CentOs能用Yum自动安装UnRar包
操作步骤:vi /etc/yum.repos.d/dag.repo
添加入下内容,然后wq 保存!
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt./redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag./rpm/packages/RPM-GPG-KEY.dag.txt |
然后yum -y install rar unrar即可
手动安装Unrar方法:http://blog./articles/138.html
转载请注明:|REKFAN|系统运维| ? CentOs使用Yum自动安装UnRar方法
|