Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method for RHEL system to restore the yum update source in the installation CD?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

RHEL system recovery installation CD in the yum update source method is what, for this problem, this article describes the corresponding analysis and solution in detail, hoping to help more want to solve this problem of small partners to find a simpler and easier way.

Install CD Local YUM Update Source

Mount the installation CD:

The code is as follows:

mount /dev/cdrom /mnt

vi /etc/yum.repos.d/local.repo

Modify the local update source file to add content:

The code is as follows:

[HightAvailability]

name=HightAvailability

baseurl=file:///mnt/HighAvailability

enable=1

gpgcheck=0

The code is as follows:

[LoadBalancer]

name=LoadBalancer

baseurl=file:///mnt/LoadBalancer

enable=1

gpgcheck=0

The code is as follows:

[Server]

name=Server

baseurl=file:///mnt/Server

enable=1

gpgcheck=0

PS: CentOS 6.1 replaced with yum CD source

The code is as follows:

#mkdir /media/CentOS

#mount /dev/cdrom /media/CentOS

test

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!

About RHEL system recovery installation CD in the yum update source method is how to answer the question to share here, I hope the above content can be of some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report