Method of Yum update source in RHEL system recovery installation CD

Time:2020-10-17

Install CD local Yum update source
Mount the installation CD:

Copy code

The code is as follows:

mount /dev/cdrom /mnt
vi /etc/yum.repos.d/local.repo

Modify the local update source file and add the content:

Copy code

The code is as follows:

[HightAvailability]
name=HightAvailability
baseurl=file:///mnt/HighAvailability
enable=1
gpgcheck=0
Copy code

The code is as follows:

[LoadBalancer]
name=LoadBalancer
baseurl=file:///mnt/LoadBalancer
enable=1
gpgcheck=0
Copy code

The code is as follows:

[Server]
name=Server
baseurl=file:///mnt/Server
enable=1
gpgcheck=0

PS: centos6.1 replaced with Yum CD source

Copy code

The code is as follows:

#mkdir /media/CentOS
#mount /dev/cdrom /media/CentOS

test

Copy code

The code is as follows:

#yum –disablerepo=* –enablerepo=c6-media install gcc

success.

Installed:
  gcc.i686 0:4.4.5-6.el6  
                                                                      
Dependency Installed:
  cloog-ppl.i686 0:0.15.7-1.2.el6                    cpp.i686 0:4.4.5-6.el6                    
  glibc-devel.i686 0:2.12-1.25.el6                   glibc-headers.i686 0:2.12-1.25.el6        
  kernel-headers.i686 0:2.6.32-131.0.15.el6          libgomp.i686 0:4.4.5-6.el6                
  mpfr.i686 0:2.4.1-6.el6                            ppl.i686 0:0.10.2-11.el6                  

Complete!