In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to configure local YUM sources in RedHat Linux RHEL6. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
The original method of configuring local YUM sources on RHEL5 is no longer applicable to RHEL6. The new configuration method is as follows:
Create a directory where the source files are stored
# mkdir / yum/
Load CD
# mount / dev/cdrom / media
Copy the CD file to the source directory on the server
# cp-a / media/* / yum/
Create a new response file for the yum source
# vi / etc/yum.repos.d/local.repo
The contents are as follows:
[base]
Name=linux 6
Baseurl= file:///yum
Gpgcheck=0
Enable=1
Modify the address of the yum source
# vi / usr/lib/python2.6/site-packages/yum/yumRepo.py
Find the following line in the file above
Remote = url +'/'+ relative
Change it to
Remote +'/ yum' + relative
This is the end of the configuration. Install a software to test it.
[root@rhel6-a yum] # yum install samba
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Base | 3.7 kB 00:00...
Base/primary_db | 2.3MB 00:00.
Setting up Install Process
Resolving Dependencies
-> Running transaction check
-> Package samba.i686 0RU 3.5.4-68.el6 set to be updated
-> Finished Dependency Resolution
Dependencies Resolved
=
Package Arch Version Repository Size
=
Installing:
Samba i686 3.5.4-68.el6 base 5.0m
Transaction Summary
=
Install 1 Package (s)
Upgrade 0 Package (s)
Total download size: 5.0 M
Installed size: 17 M
Is this ok [y/N]:
The great task has been completed.
Of course, you can also configure the yum source for ftp and http in the above way.
This is how to configure the local YUM source for RedHat Linux RHEL6 shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.