|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!在利用CentOS5.X过程当中,固然本身源堆栈里的软件包比起Redhat已全了良多,但仍是有良多经常使用的包没有,这时候候就要用到第三方的源堆栈,我这里利用的是rpmfusion这个源,绝对来讲速率很快,软件包也很完全。
1、检察体系已开启的YUM
[root@server~]#yumrepolist
Loadedplugins:fastestmirror
Loadingmirrorspeedsfromcachedhostfile
*base:mirrors.btte.net
*extras:mirrors.btte.net
*updates:mirrors.btte.net
repoidreponamestatus
addonsCentOS-5CAddonsenabled:0
baseCentOS-5CBaseenabled:2,725
extrasCentOS-5CExtrasenabled:282
updatesCentOS-5CUpdatesenabled:858
#发明并没有启用rpmfusion源2、安装rpmfusion堆栈包(在这之前先安装epel-release的包)
32位:
[root@server~]#rpm-ivhhttp://mirrors.ustc.edu.cn/fedora/epel/5/i386/epel-release-5-4.noarch.rpm
Retrievinghttp://mirrors.ustc.edu.cn/fedora/epel/5/i386/epel-release-5-4.noarch.rpm
warning:/var/tmp/rpm-xfer.AJYJu6:HeaderV3DSAsignature:NOKEY,keyID217521f6
Preparing…###########################################[100%]
1:epel-release###########################################[100%]
[root@server~]#rpm-ivhhttp://mirrors.163.com/rpmfusion/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpmhttp://mirrors.163.com/rpmfusion/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5-1.noarch.rpm
Retrievinghttp://mirrors.163.com/rpmfusion/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpm
Retrievinghttp://mirrors.163.com/rpmfusion/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5-1.noarch.rpm
warning:/var/tmp/rpm-xfer.XlgX0E:HeaderV3DSAsignature:NOKEY,keyIDe74f0522
warning:/var/tmp/rpm-xfer.ErMur0:HeaderV3DSAsignature:NOKEY,keyIDab194290
Preparing…###########################################[100%]
1:rpmfusion-free-release###########################################[50%]
2:rpmfusion-nonfree-relea###########################################[100%]64位:
[root@server~]#rpm-ivhhttp://mirrors.ustc.edu.cn/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm
[root@server~]#rpm-ivhhttp://mirrors.163.com/rpmfusion/nonfree/el/updates/5/x86_64/rpmfusion-nonfree-release-5-1.noarch.rpmhttp://mirrors.163.com/rpmfusion/nonfree/el/updates/5/x86_64/rpmfusion-nonfree-release-5-1.noarch.rpm3、从头创立YUM缓存
[root@server~]#yumcleanall&&yummakecache
Loadedplugins:fastestmirror
CleaningupEverything
Cleaninguplistoffastestmirrors
Loadedplugins:fastestmirror
Determiningfastestmirrors
*base:centos.ustc.edu.cn
*epel:mirrors.ustc.edu.cn
*extras:centos.ustc.edu.cn
*rpmfusion-free-updates:mirrors.ustc.edu.cn
*rpmfusion-nonfree-updates:mirrors.ustc.edu.cn
*updates:centos.ustc.edu.cn
addons|1.9kB00:00
addons/filelists_db|564B00:00
addons/other_db|552B00:00
addons/primary_db|1.1kB00:00
base|1.1kB00:00
base/filelists|3.0MB01:04
base/other|10MB03:48
base/group|1.1MB00:23
base/primary|967kB00:20
epel|3.7kB00:00
epel/filelists_db|4.8MB01:44
epel/updateinfo|465kB00:09
epel/other_db|1.9MB00:40
epel/group_gz|168kB00:03
epel/primary_db|3.1MB01:07
extras|2.1kB00:00
extras/filelists_db|214kB00:07
extras/other_db|426kB00:09
extras/group|9.7kB00:00
extras/primary_db|171kB00:03
rpmfusion-free-updates|2.8kB00:00
rpmfusion-free-updates/filelists_db|37kB00:00
rpmfusion-free-updates/other_db|28kB00:00
rpmfusion-free-updates/group_gz|1.4kB00:00
rpmfusion-free-updates/primary_db|63kB00:01
rpmfusion-nonfree-updates|2.8kB00:00
rpmfusion-nonfree-updates/filelists_db|8.6kB00:00
rpmfusion-nonfree-updates/other_db|7.9kB00:00
rpmfusion-nonfree-updates/group_gz|1.4kB00:00
rpmfusion-nonfree-updates/primary_db|18kB00:00
updates|1.9kB00:00
updates/filelists_db|3.2MB01:10
updates/other_db|15MB05:26
updates/primary_db|757kB00:18
base2725/2725
base2725/2725
base2725/2725
MetadataCacheCreated4、考证已开启的YUM
[root@server~]#yumrepolist
Loadedplugins:fastestmirror
Loadingmirrorspeedsfromcachedhostfile
*base:centos.ustc.edu.cn
*epel:mirrors.ustc.edu.cn
*extras:centos.ustc.edu.cn
*rpmfusion-free-updates:mirrors.ustc.edu.cn
*rpmfusion-nonfree-updates:mirrors.ustc.edu.cn
*updates:centos.ustc.edu.cn
repoidreponamestatus
addonsCentOS-5CAddonsenabled:0
baseCentOS-5CBaseenabled:2,725
epelExtraPackagesforEnterpriseLinux5Cenabled:5,814
extrasCentOS-5CExtrasenabled:282
rpmfusion-free-updatesRPMFusionforEL5CFreeCUpdatesenabled:95
rpmfusion-nonfree-updatesRPMFusionforEL5CNonfreeCUpdatesenabled:26
updatesCentOS-5CUpdatesenabled:858
repolist:9,800
#发明已启用了rpmfusion源
转载http://300second.blog.51cto.com/7582/1007598
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们! |
|