CentOS添加RPMforge软件源

1、查看CentOS版本

cat /etc/redhat-release

2、查看系统位数

uname -i

3、下载rpm包

wget "rpm地址"

CentOS 6:

i686 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm
x86_64 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

CentOS 5:

i386 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm
x86_64 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm

CentOS 4:

i386 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el4.rf.i386.rpm
x86_64 http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el4.rf.x86_64.rpm

4、引入KEY

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

#适用 5、6

rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

#适用 4

5、校验下载包

rpm -K "下载包完整名"

6、安装包

rpm -i "下载包完整名"

7、完成测试(可选)

yum install htop

 

你可能感兴趣的:(centos)