In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.