系统环境:CentOs6.3 X86_64
问题:默认CentOs6.3不能使用Yum自动安装Unrar
[root@rekfan.com /]# 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 dohttp://blog.rekfan.com/?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.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即可
unrar x 文件.rar
END
如本资源侵犯了您的权益,请联系投诉邮箱admin@wmphp.com进行举报!我们将在收到邮件的1个小时内处理完毕。
本站仅为平台,发布的资源均为用户投稿或转载!所有资源仅供参考学习使用,请在下载后的24小时内删除,禁止商用!
Wmphp.com(完美源码)助力正版,如您有自己的原创产品,可以联系客服投稿,代理出售!
Wmphp.com(完美源码)客服QQ:136882447
Wmphp.com(完美源码)商务电话(仅对企业客户/个人用户):15120086569 (微信同步)
请注意:本站不提供任何免费的技术咨询服务,为了节约时间,下载前 请确认自己会技术
完美源码 » CentOS 用Yum安装unrar
完美源码 » CentOS 用Yum安装unrar