1 查看系统版本:
[root@localhost /]# lsb_release -a LSB Version::core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch Distributor ID:RedHatEnterpriseServer Description:Red Hat Enterprise Linux Server release 5.8 (Tikanga) Release:5.8 Codename:Tikanga
2 进入这个网站下载安装包:http://pkgs.org/
具体包位置:http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-5-4.noarch.rpm
[root@localhost /]# wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/i386/epel-release-5-4.noarch.rpm
3 安装这个rpm:
[root@localhost saltstack]# rpm -ivh epel-release-5-4.noarch.rpm
4 检查
[root@localhost saltstack]# yum list zvbi.i386 0.2.33-5.el5.1 epel zvbi-devel.i386 0.2.33-5.el5.1 epel zvbi-fonts.i386 0.2.33-5.el5.1 epel .....
5 安装RPM更新软件rpmforge
下载:
[root@localhost saltstack]# wget http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm --2015-10-06 02:31:15-- http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm Resolving apt.sw.be... 193.1.193.67 Connecting to apt.sw.be|193.1.193.67|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 16698 (16K) [application/x-redhat-package-manager] Saving to: `rpmforge-release-0.3.6-1.el5.rf.i386.rpm‘ 100%[===========================================>] 16,698 18.4K/s in 0.9s 2015-10-06 02:31:22 (18.4 KB/s) - `rpmforge-release-0.3.6-1.el5.rf.i386.rpm‘ saved [16698/16698]
安装:
[root@localhost saltstack]# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm warning: rpmforge-release-0.3.6-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 Preparing... ########################################### [100%] 1:rpmforge-release ########################################### [100%]
6 安装测试:
[root@localhost saltstack]# yum install zziplib Loaded plugins: katello, product-id, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package zziplib.i386 0:0.13.45-1.el5.rf set to be updated --> Finished Dependency Resolution Dependencies Resolved ===================================================================================== Package Arch Version Repository Size ===================================================================================== Installing: zziplib i386 0.13.45-1.el5.rf rpmforge 95 k Transaction Summary ===================================================================================== Install 1 Package(s) Upgrade 0 Package(s) Total download size: 95 k Is this ok [y/N]: y Downloading Packages: zziplib-0.13.45-1.el5.rf.i386.rpm | 95 kB 00:01 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : zziplib 1/1 Installed products updated. Installed: zziplib.i386 0:0.13.45-1.el5.rf Complete! [root@localhost saltstack]#
本文出自 “天道酬勤” 博客,转载请与作者联系!
原文地址:http://luzhi1024.blog.51cto.com/8845546/1729767