yum配置

在使用CENTOS 过程中,虽然自身源仓库里的软件包比起redhat已经全了很多   但还是有很多常用的包没有   这时候就要用到第三方的源仓库,我这里使用的是rpmfusion这个源,相对来说速度很快,软件包也很齐全
http://www.linuxyunwei.com/2012/09/%E5%9C%A8centos-6-x%E4%B8%AD%E4%BD%BF%E7%94%A8%E7%AC%AC%E4%B8%89%E6%96%B9rpmfusion%E6%BA%90%E4%BB%93%E5%BA%93/
一、首先查看已经开启的YUM
?
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
	
[root@www ~]# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * centosplus: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirrors.btte.net
repo id                                         repo name                                                status
base                                            CentOS-6 - Base                                          6,339+7
centosplus                                      CentOS-6 - Plus                                            10+25
contrib                                         CentOS-6 - Contrib                                             0
extras                                          CentOS-6 - Extras                                              4
updates                                         CentOS-6 - Updates                                        524+28
repolist: 6,877
# 发现并没有启用rpmfusion

二、安装rpmfusion仓库包,在这之前得要先安装一个叫 epel-release的包
?
01
02
03
04
05
06
07
08
09
10
11
12
13
	
[root@www ~]# rpm -ivh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-7.noarch.rpm
Retrieving http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-7.noarch.rpm
warning: /var/tmp/rpm-tmp.7deBWy: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
[root@www ~]# rpm -ivh http://mirrors.163.com/rpmfusion/free/el/updates/6/x86_64/rpmfusion-free-release-6-1.noarch.rpm http://mirrors.163.com/rpmfusion/nonfree/el/updates/6/x86_64/rpmfusion-nonfree-release-6-1.noarch.rpm
Retrieving http://mirrors.163.com/rpmfusion/free/el/updates/6/x86_64/rpmfusion-free-release-6-1.noarch.rpm
Retrieving http://mirrors.163.com/rpmfusion/nonfree/el/updates/6/x86_64/rpmfusion-nonfree-release-6-1.noarch.rpm
warning: /var/tmp/rpm-tmp.tlhFkE: Header V3 RSA/SHA256 Signature, key ID 849c449f: NOKEY
warning: /var/tmp/rpm-tmp.CqNFZ6: Header V3 RSA/SHA256 Signature, key ID 5568bbb2: NOKEY
Preparing...                ########################################### [100%]
   1:rpmfusion-free-release ########################################### [ 50%]
   2:rpmfusion-nonfree-relea########################################### [100%]

三、重新创建YUM缓存
?
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
	
[root@www ~]# yum clean all && yum makecache
Loaded plugins: fastestmirror, refresh-packagekit, security
Cleaning repos: base epel extras rpmfusion-free-updates rpmfusion-nonfree-updates updates
Cleaning up Everything
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
epel/metalink                                                                                                                                    | 4.3 kB     00:00
 * base: mirrors.163.com
 * epel: mirrors.ustc.edu.cn
 * extras: mirrors.163.com
 * rpmfusion-free-updates: mirrors.ustc.edu.cn
 * rpmfusion-nonfree-updates: mirrors.ustc.edu.cn
 * updates: mirrors.163.com
base                                                                                                                                             | 3.7 kB     00:00
base/filelists_db                                                                                                                                | 5.9 MB     00:06
base/primary_db                                                                                                                                  | 4.5 MB     00:05
base/other_db                                                                                                                                    | 2.6 MB     00:02
base/group_gz                                                                                                                                    | 211 kB     00:00
epel                                                                                                                                             | 4.3 kB     00:00
epel/filelists_db                                                                                                                                | 6.2 MB     00:05
epel/primary_db                                                                                                                                  | 4.7 MB     00:04
epel/other_db                                                                                                                                    | 2.6 MB     00:02
epel/group_gz                                                                                                                                    | 229 kB     00:00
epel/updateinfo                                                                                                                                  | 431 kB     00:00
extras                                                                                                                                           | 3.0 kB     00:00
extras/filelists_db                                                                                                                              | 2.7 kB     00:00
extras/primary_db                                                                                                                                | 6.3 kB     00:00
extras/other_db                                                                                                                                  | 3.2 kB     00:00
rpmfusion-free-updates                                                                                                                           | 2.7 kB     00:00
rpmfusion-free-updates/filelists_db                                                                                                              | 128 kB     00:00
rpmfusion-free-updates/primary_db                                                                                                                | 198 kB     00:00
rpmfusion-free-updates/other_db                                                                                                                  |  52 kB     00:00
rpmfusion-nonfree-updates                                                                                                                        | 2.2 kB     00:00
rpmfusion-nonfree-updates/filelists_db                                                                                                           | 7.6 kB     00:00
rpmfusion-nonfree-updates/primary_db                                                                                                             |  17 kB     00:00
rpmfusion-nonfree-updates/other_db                                                                                                               | 7.2 kB     00:00
updates                                                                                                                                          | 3.5 kB     00:00
updates/filelists_db                                                                                                                             | 1.7 MB     00:02
updates/prestodelta                                                                                                                              | 217 kB     00:00
updates/primary_db                                                                                                                               | 2.3 MB     00:03
updates/other_db                                                                                                                                 | 211 kB     00:00
Metadata Cache Created

四、验证已经开启的YUM
?
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
	
[root@www ~]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * epel: mirrors.ustc.edu.cn
 * extras: mirrors.163.com
 * rpmfusion-free-updates: mirrors.ustc.edu.cn
 * rpmfusion-nonfree-updates: mirrors.ustc.edu.cn
 * updates: mirrors.163.com
repo id                                                               repo name                                                                                  status
base                                                                  CentOS-6 - Base                                                                            6,339+7
epel                                                                  Extra Packages for Enterprise Linux 6 - x86_64                                               7,765
extras                                                                CentOS-6 - Extras                                                                                4
rpmfusion-free-updates                                                RPM Fusion for EL 6 - Free - Updates                                                           230
rpmfusion-nonfree-updates                                             RPM Fusion for EL 6 - Nonfree - Updates                                                         24
updates                                                               CentOS-6 - Updates                                                                          524+28
repolist: 14,886


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值