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 !!!!!!!!!!!!!!!!