Build a local YUM source for Red Hat Enterprise Linux Server release 5.5

Source: Internet
Author: User

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:

RedHat Linux local yum source configuration

RedHat 6.2 modify yum source in Linux use CentOS source for free

Configure the epel yum Source

Redhat local yum source configuration

Description of yum configuration file

Install yum in RedHat 6.1)

YUM installation and cleaning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.