RHCE Special Course Configuration yum

Source: Internet
Author: User
Step 1: mount the optical drive and cut it to the Server directory [root @ localhost ~] # Mount/dev/cdrom/media/[root @ localhost ~] # Cd/media/Server/Step 2: install the following three RPM packages: [root @ localhostServer] # rpm-ivhvsftpd-2.0.5-12.el5.i386.rpm [root @ localhostSer

Step 1: mount the optical drive and cut it to the Server directory

[Root @ localhost ~] # Mount/dev/cdrom/media/
[Root @ localhost ~] # Cd/media/Server/

Step 2: install the following three RPM packages:
[Root @ localhost Server] # rpm-ivh vsftpd-2.0.5-12.el5.i386.rpm
[Root @ localhost Server] # rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm
[Root @ localhost Server] # rpm-ivh yum-3.2.8-9.el5.noarch.rpm

Step 3: Solve the dependency problem
[Root @ localhost Server] # cp-pr/media/*/var/ftp/pub/
[Root @ localhost Server] # createrepo-g/var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml/var/ftp/pub/Server/
[Root @ localhost Server] # createrepo-g/var/ftp/pub/VT/repodata/comps-rhel5-vt.xml/var/ftp/pub/VT/
[Root @ localhost ~] # Createrepo-g/var/ftp/pub/Cluster/repodata/comps-rhel5-cluster.xml/var/ftp/pub/Cluster
[Root @ localhost ~] # Createrepo-g/var/ftp/pub/ClusterStorage/repodata/comps-rhel5-cluster-st.xml/var/ftp/pub/ClusterStorage/

Step 4: Start the ftp service:
[Root @ localhost ~] Chkconfig vsftpd on
Step 5: configure the YUM Library

[Root @ localhost ~] # Cd/etc/yum. repos. d/
[Root @ localhost yum. repos. d] # cp-p rhel-debuginfo.repo rhel. repo
[Root @ localhost yum. repos. d] # vim rhel. repo

[Server]
Name = Red Hat Enterprise Linux server
Baseurl = ftp: // your-ip-address/pub/Server
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release
[Vt]
Name = Red Hat Enterprise Linux t
Baseurl = ftp: // your-ip-address/pub/VT
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
Name = Red Hat Enterprise Linux cluster
Baseurl = ftp: // your-ip-address/pub/Cluster
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Clusterstorage]
Name = Red Hat Enterprise Linux clusterstorage
Baseurl = ftp: // your-ip-address/pub/ClusterStorage
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
: Wq

Step 6: Clear the YUM cache file:
Yum clean all

Step 7: test:

Yum-y install gcc
 

OK. we have done all things !!!!!!!!!!!!!!!!

Related Article

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.