码迷,mamicode.com
首页 > 系统相关 > 详细

为linux安装epel-yum仓库

时间:2015-12-30 00:36:26      阅读:314      评论:0      收藏:0      [点我收藏+]

标签:linux安装   仓库   

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]#


本文出自 “天道酬勤” 博客,转载请与作者联系!

为linux安装epel-yum仓库

标签:linux安装   仓库   

原文地址:http://luzhi1024.blog.51cto.com/8845546/1729767

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!