中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

rhel5.6怎么配置使用centos源和本地源

發布時間:2021-07-22 09:56:40 來源:億速云 閱讀:197 作者:chen 欄目:云計算

本篇內容介紹了“rhel5.6怎么配置使用centos源和本地源”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!

[root@test125 etc]# rpm -ivh ftp://ftp.cs.stanford.edu/pub/rpms/centos/5/i386/rpmforge-release-0.3.6-

1.el5.rf.i386.rpm
Retrieving ftp://ftp.cs.stanford.edu/pub/rpms/centos/5/i386/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
warning: /var/tmp/rpm-xfer.FQ5d7M: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]
[root@test125 etc]# mv /etc/yum.repos.d/rhel-debuginfo.repo  /etc/yum.repos.d/rhel-debuginfo.repo.bak
[root@test125 etc]# mv /etc/yum.repos.d/rpmforge.repo   /etc/yum.repos.d/rpmforge.repo.bak

[root@test125 etc]# cd yum.repos.d/
[root@test125 yum.repos.d]# touch rhel-debuginfo.repo
[root@test125 yum.repos.d]# touch mirrors-rpmforge
[root@test125 yum.repos.d]# touch rpmforge.repo
[root@test125 yum.repos.d]# vi rhel-debuginfo.repo
[root@test125 yum.repos.d]# vi mirrors-rpmforge
[root@test125 yum.repos.d]# vi rpmforge.repo
#這三個文件見附件(可下載)
[root@test125 yum.repos.d]# yum install yum-fastestmirror yum-presto
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
addons                                                   |  951 B     00:00    
addons/primary                                           |  204 B     00:00    
base                                                     | 1.1 kB     00:00    
base/primary                                             | 1.2 MB     00:40    
base                                                                  3566/3566
dag                                                      | 1.1 kB     00:00    
dag/primary                                              | 3.9 MB     02:43    
dag                                                                 10900/10900
extras                                                   | 2.1 kB     00:00    
extras/primary_db                                        | 176 kB     00:05    
rpmforge                                                 | 1.1 kB     00:00    
rpmforge/primary                                         | 3.9 MB     06:19    
rpmforge                                                            10900/10900
update                                                   | 1.9 kB     00:00   
update/primary_db                                        | 453 kB     00:09    
Setting up Install Process
No package yum-presto available.
Resolving Dependencies
--> Running transaction check
---> Package yum-fastestmirror.noarch 0:1.1.16-16.el5.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch        Version                     Repository
                                                                           Size
================================================================================
Installing:
 yum-fastestmirror      noarch      1.1.16-16.el5.centos        base       19 k

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

Total download size: 19 k
Is this ok [y/N]: y
Downloading Packages:
yum-fastestmirror-1.1.16-16.el5.centos.noarch.rpm        |  19 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : yum-fastestmirror                                        1/1

Installed:
  yum-fastestmirror.noarch 0:1.1.16-16.el5.centos                              

Complete!
You have new mail in /var/spool/mail/root

試驗一下:
[root@test125 yum.repos.d]# yum install ipvsadm     (安裝LVS集群套件)
Loaded plugins: fastestmirror, rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Loading mirror speeds from cached hostfile
 * rpmforge: apt.sw.be
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ipvsadm.x86_64 0:1.24-13.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch             Version                Repository      Size
================================================================================
Installing:
 ipvsadm           x86_64           1.24-13.el5            base            34 k

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

Total download size: 34 k
Is this ok [y/N]: y
Downloading Packages:
ipvsadm-1.24-13.el5.x86_64.rpm                           |  34 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : ipvsadm                                                  1/1

Installed:
  ipvsadm.x86_64 0:1.24-13.el5                                                 

Complete!
[root@test125 yum.repos.d]#

使用本地源的配置過程:

1.首先掛載光盤,光盤自運行一般掛到/media下。

請在/mnt下新建文件夾/cdrom

然后掛載dvd安裝盤到/mnt/cdrom 

2.檢查系統中是否已經安裝了如下軟件包(版本號可能有所不同),如果缺少,請自行安裝。

# rpm -qa |grep yum

yum-3.2.19-18.el5

yum-security-1.1.16-13.el5

yum-updatesd-0.9-2.el5

yum-rhn-plugin-0.5.3-30.el5

yum-metadata-parser-1.1.2-2.el5 

3.編輯/etc/yum.repos.d/rhel-debuginfo.repo,添加如下內容

[base]

name=Server Local Sources

baseurl=file:///mnt/cdrom/Server

enable=1

gpcheck=1

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release

如果您打算基于此安裝cluster、clusterstorage或者xen相關的軟件包,只須再添加以下內容:

[VT]

name=VT Local Sources

baseurl=file:///mnt/cdrom/VT

enable=1

gpcheck=1

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release

[Cluster]

name=Cluster Local Sources

baseurl=file:///mnt/cdrom/Cluster

enable=1

gpcheck=1

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release

[ClusterStorage]

name=ClusterStorage Local Sources

baseurl=file:///mnt/cdrom/ClusterStorage

enable=1

gpcheck=1

gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release

當然,以上三段內容均可以單獨結合[base]段使用,例如,如果您只需要安裝Xen相關rpm包,您只需要添加[VT]段結合[base]段即可。

4.測試。

#rpm --import /mnt/cdrom/RPM-GPG-KEY-redhat-release 

#yum clean   all

#yum install iptraf

#yum install ipvsadm 如果能安裝就成功了

“rhel5.6怎么配置使用centos源和本地源”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注億速云網站,小編將為大家輸出更多高質量的實用文章!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

克山县| 隆林| 建宁县| 福安市| 易门县| 隆昌县| 日照市| 陆良县| 固原市| 西盟| 马边| 玉溪市| 丰都县| 灵宝市| 固镇县| 台南县| 合川市| 三明市| 麻江县| 文登市| 奇台县| 仪陇县| 文安县| 怀化市| 白朗县| 长治县| 柘城县| 色达县| 台州市| 增城市| 大方县| 当雄县| 阿拉善右旗| 晋江市| 怀远县| 石楼县| 凌源市| 乌审旗| 阿勒泰市| 通化县| 苏尼特右旗|