CentOS 安裝第三方repo

1.使用EPEL
2.使用Repoforge

1.使用EPEL
EPEL 套件可使用yum 先安裝

# yum install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.isu.edu.tw
 * extras: ftp.isu.edu.tw
 * rpmforge: mirror.smartmedia.net.id
 * updates: ftp.isu.edu.tw
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:5-4 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================
 Package Arch Version Repository Size
============================================================================================================================================================
Installing:
 epel-release noarch 5-4 extras 12 k

Transaction Summary
============================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 12 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-5-4.noarch.rpm | 12 kB 00:00 
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
extras/gpgkey | 1.5 kB 00:00 
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <[email protected]>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
 Installing : epel-release 1/1 

Installed:
 epel-release.noarch 0:5-4 

Complete!

也可以到這邊看相關說明
https://fedoraproject.org/wiki/EPEL
下載CentOS7
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
下載CentOS6
https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
下載CentOS5
https://dl.fedoraproject.org/pub/epel/epel-release-latest-5.noarch.rpm

安裝範例使用CentOS5

#rpm -ivh  epel-release-latest-5.noarch.rpm
warning: epel-release-latest-5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
 1:epel-release ########################################### [100%]

2.使用Repoforge
先從這邊看到相關說明
http://repoforge.org/use/
下載CentOS7
http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
下載CentOS6
32 bit http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
64 bit http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
下載CentOS5
32 bit http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm
64 bit http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm

Facebook Comments