您的位置:首页 > 运维架构 > Linux

让CentOS能用yum自动安装rar和unrar

2016-03-08 19:15 405 查看
【0】README

0.1)本文转自: http://www.centoscn.com/CentOS/config/2015/0520/5485.html

目的:让CentOS能用yum自动安装rar和unrar

系统环境: CentOS 7.0

具体操作步骤如下:


1.编辑文件

编辑dag.repo文件,或者说是新建一个dag.repo文件。

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



2.在文件中添加代码

该文件在我这里是个空文件,添加入下内容,然后
: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



3.安装

执行下列代码自动安装rar和unrar:

yum -y install rar unrar


ok,大功告成!

4.解压缩

4.1)解压: rar x destination.rar

4.2)压缩: rar a destination.rar sourceFile
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: