Status quo: you can use YUM on RedHatEnterpriseLinuxServerrelease55, but you need to register with the Red Hat official account and spend money. Do not spend money: Build a RedHatEnterpriseLinuxServerrelease55
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.