Status quo: YUM can be used on RedHatEnterpriseLinuxServerrelease5.5, but you need to register with the Red Hat official account and spend money. Do not spend money: Build a YUM source for RedHatEnterpriseLinuxServerrelease5.5 on one machine on the LAN for other machines on the LAN. Detailed process of yum source construction: 1 on machine A (CentOSrele
Status quo: YUM can be used on Red Hat Enterprise Linux Server release 5.5, but it needs to be officially registered with Red Hat, which requires money.
Do not spend money: Build a YUM source for Red Hat Enterprise Linux Server release 5.5 on one machine on the LAN for other machines on the LAN.
Detailed process for yum source construction:
1. Install JDK, Tomcat, and createrepo on machine A (CentOS release 6.4 (Final) System)
Createrepo installation command: yum install-y createrepo *
2. Upload the Red Hat Enterprise Linux Server release 5.5 ISO file to machine A/home/commonsoft/and mount it to the OS folder.
Mount command: mount-t iso9660-o loop rhel-server-5.5-x86_64-dvd.iso OS
3. Create two folders under/home/commonsoft/apache-tomcat-7.0.42/webapps /.
Mkdir rehl rehl1
4. COPY all the items in the OS folder to rehl rehl1, and then delete all .html files in rehl, delete rehl/Server/repodata/*, rehl/ServerStrorage/repodata/*, rehl/Cluster/repodata/*, rehl/VT/repodata /*
5. Establish the relationship between rpm files
Createrepo-s sha-g/home/commonsoft/apache-tomcat-7.0.42/webapps/rehl1/Server/repodata/comps-rhel5-server-core.xml/home/commonsoft/apache-tomcat-7.0.42/webapps/rehl /Server/
Createrepo-s sha-g/home/commonsoft/apache-tomcat-7.0.42/webapps/rehl1/Cluster/repodata/comps-rhel5-cluster.xml/home/commonsoft/apache-tomcat-7.0.42/webapps/rehl /Cluster/
Createrepo-s sha-g/home/commonsoft/apache-tomcat-7.0.42/webapps/rehl1/ClusterStorage/repodata/comps-rhel5-cluster-st.xml/home/commonsoft/apache-tomcat-7.0.42/webapps/rehl /ClusterStorage/
Createrepo-s sha-g/home/commonsoft/apache-tomcat-7.0.42/webapps/rehl1/VT/repodata/comps-rhel5-vt.xml/home/commonsoft/apache-tomcat-7.0.42/webapps/rehl /VT/
6. Create a rehl-5p5.repo file with the following content:
[Rehl-server]
Name = rehl-server
Base url = http://archive.cloudera.com/rehl/Server
Gpgkey = http://archive.cloudera.com/rehl/RPM-GPG-KEY-RedHat-release
Gpgcheck = 1
[Rehl-cluster]
Name = rehl-cluster
Base url = http://archive.cloudera.com/rehl/Cluster
Gpgkey = http://archive.cloudera.com/rehl/RPM-GPG-KEY-redhat-release
Gpgcheck = 1
[Rehl-clusterStorage]
Name = rehl-clusterStorage
Base url = http://archive.cloudera.com/rehl/ClusterStorage
Gpgkey = http://archive.cloudera.com/rehl/RPM-GPG-KEY-redhat-release
Gpgcheck = 1
[Rehl-vt]
Name = rehl-vt
Base url = http://archive.cloudera.com/rehl/VT
Gpgkey = http://archive.cloudera.com/rehl/RPM-GPG-KEY-redhat-release
Gpgcheck = 1
7. Upload the rehl-5p5.repo to machine B (Red Hat Enterprise Linux Server release 5.5 System)/etc/yum. repos. d. xxx. xxx. xxx archive.cloudera.com writes/etc/hosts to B (you can delete other unusable sources first)
8. Execute yum clean all on B.
9. Execute yum list available on B. The result shows that many rpm files are listed successfully.
Recommended reading:
Configuration http://www.linuxidc.com/Linux/2013-08/88217.htm for local yum sources in RedHat Linux
RedHat 6.2 Linux modify yum source free use CentOS source http://www.linuxidc.com/Linux/2013-07/87383.htm
Configure epel yum source http://www.linuxidc.com/Linux/2012-10/71850.htm
Redhat local yum source configuration http://www.linuxidc.com/Linux/2012-11/75127.htm
Yum profile description http://www.linuxidc.com/Linux/2013-04/83298.htm
Install yum http://www.linuxidc.com/Linux/2013-06/86535.htm in RedHat 6.1
YUM installation and cleaning http://www.linuxidc.com/Linux/2013-07/87163.htm
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10