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

RHEL local yum source configuration

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

RHEL local yum source configuration

1. Create a mount directory

# mkdir-p / media/cdrom

two。 Mount the iso CD image file corresponding to the system version

# mount-o loop-t iso9660 / opt/rhel-server-6.2-x86_64-dvd.iso / media/cdrom

3. The configuration yum file is as follows

# vi / etc/yum.repos.d/rhel-source.repo

[ISO]

Name=iso

Baseurl= file:///media/cdrom/Server/

Enabled=1

Gpgcheck=0

CentOS local yum source configuration:

The main steps are:

Steps 1 and 2 are no different from RHEL.

Step 3 configure the yum file:

Cd / etc/yum.repos.d/

Disable the network yum source:

Mv CentOS-Base.repo CentOS-Base.repo.bak

Back up the original yum source configuration:

Cp CentOS-Media.repo CentOS-Media.repo.bak

Configure the local yum source:

Vi CentOS-Media.repo

Modified to:

[c6-media]

Name=CentOS-$releasever-Media

Baseurl= file:///media/cdrom/

Gpgcheck=1

Enabled=1

Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Finally, test whether yum is available:

Yum clean all

Yum list

Check the necessary software packages

Rpm-Q binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc- gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh ksh compat-libcap1

Install dependency packages

Yum install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc- gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel pdksh ksh compat-libcap1

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