In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to update RedHat6.5 to the YUM source of CentOS6.5. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
How to update RedHat6.5 to YUM source for CentOS6.5
The yum source that comes with RedHat6.5 by default needs to be registered before it can be updated. An error is reported:
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Can be replaced with the source corresponding to CentOS.
Do the following:
1. Check if the yum package is installed. Check to see if yum is installed on RedHat, and if so, what yum packages are available:
Rpm-qa | grep yum
2 delete the yum package that comes with RedHat
Rpm-qa | grep yum | xargs rpm-e-- nodeps (delete the rpm package without checking for dependencies)
Rpm-qa | grep yum (query confirmation)
3. Download the new yum package. Using the yum package of CentOS6.5
3.1) View version number and system category:
3.1.1 cat / etc/redhat-release
3.1.1 arch
According to the previous step, locate the corresponding yum package, and then download:
The download site is: http://centos.ustc.edu.cn/centos/6/os/x86_64/Packages/
Or: http://mirrors.163.com/centos/6.8/os/x86_64/Packages/
Download the following files in the linux environment:
Python-urlgrabber-3.9.1-11.el6.noarch.rpm
Python-iniparse-0.3.1-2.1.el6.noarch.rpm
Yum-3.2.29-73.el6.centos.noarch.rpm
Yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
Yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm
3.4) install several files downloaded above:
Rpm-ivh * .rpm
If this step is wrong, the bottom line is as follows:
Python-urlgrabber is > = 3.9.1 is needed by yum-metadata-parser-1.1.2-16.el6.i686
The download and installation of the yum package does not match the system version and needs to be downloaded and installed again. In addition, the 163 mirror sites are merged under the directory of 6 for resources from 6.0 to 6.5.
3.5) replace the yum source, delete or back up the original source to another directory:
3.5.1 cd / etc/yum.repos.d/
3.5.2 mv rhel-source.repo rhel-source.repo.bak
3.5.3 wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
3.5.4 vi CentOS6-Base-163.repo
Edit the file and replace all the $releasever in the file with the version number: 6. (note that it's not 6. 5! ) Last save!
4. Clear the original cache and rebuild the cache:
Yum clean all
Yum makecache
5. Update the system:
Yum-y install update
The above is how to update RedHat6.5 to CentOS6.5 's YUM source. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, 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.