In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to configure rhel5.6 to use centos sources and local sources". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
[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
# these three files are attached (downloadable)
[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 | 951B 00:00
Addons/primary | 204B 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.9MB 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.9MB 06:19
Rpmforge 10900/10900
Update | 1.9 kB 00:00
Update/primary_db | 453kB 00:09
Setting up Install Process
No package yum-presto available.
Resolving Dependencies
-> Running transaction check
-> Package yum-fastestmirror.noarch 01.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 19k
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 0VOR 1.1.16-16.el5.centos
Complete!
You have new mail in / var/spool/mail/root
Try it out:
[root@test125 yum.repos.d] # yum install ipvsadm (install LVS Cluster Suite)
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 0RU 1.24-13.el5 set to be updated
-> Finished Dependency Resolution
Dependencies Resolved
=
Package Arch Version Repository Size
=
Installing:
Ipvsadm x8631 64 1.24-13.el5 base 34k
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 0vl 1.24-13.el5
Complete!
[root@test125 yum.repos.d] #
Configuration process using a local source:
1. First of all, mount the CD, the CD self-running usually hangs under / media.
Please create a new folder / cdrom under / mnt
Then mount the dvd installation disk to / mnt/cdrom
two。 Check whether the following software packages have been installed in the system (the version number may be different). If it is missing, please install it yourself.
# 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. Edit / etc/yum.repos.d/rhel-debuginfo.repo and add the following
[base]
Name=Server Local Sources
Baseurl= file:///mnt/cdrom/Server
Enable=1
Gpcheck=1
Gpgkey= file:///mnt/cdrom/RPM-GPG-KEY-redhat-release
If you plan to install cluster, clusterstorage, or xen-related software packages based on this, simply add the following:
[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
Of course, the above three paragraphs can be used separately with the [base] section. For example, if you only need to install the Xen-related rpm package, you only need to add the [VT] section with the [base] section.
4. test.
# rpm-- import / mnt/cdrom/RPM-GPG-KEY-redhat-release
# yum clean all
# yum install iptraf
# yum install ipvsadm will be successful if it can be installed
That's all for "how to configure rhel5.6 to use centos sources and local sources". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.