In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to configure RHEL6 yum source warehouse, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
First, check rhel's own yum installation package rpm-qa | grep yum II. Uninstall these packages rpm-qa | grep yum | xargs rpm-e-- nodeps # uninstall rpm-qa without checking dependencies | grep yum # check whether the installation package is uninstalled cleanly. Third, installation packages that need to be configured will be updated iteratively at any time, which may not be applicable. If the download fails, you can go to this website to download: http://mirrors.163.com/centos/6/os/x86_64/Packages/ python-iniparse-0.3.1-2.1.el6.noarch.rpm python-urlgrabber-3.9.1-11.el6.noarch.rpm yum-3.2.29-81.el6.centos.noarch.rpm yum-metadata-parser-1.1.2-16.el6.x86_64.rpm yum-plugin-fastestmirror. -1.1.30-41.el6.noarch.rpm IV. Install the corresponding package
1. Download and install directly from the terminal
[root@rhel6 ~] # wget installation package address (find the corresponding package address in the URL provided above) eg: [root@rhel6 ~] # wget wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
two。 Download to local disk installation
# enter the command rpm-ivh * # under the path from # cd to package to install all rpm packages rpm-qa in this directory | grep yum # query whether it is installed
[note] it has been mentioned in other posts that packages need to be installed in a specific order as follows
1. Rpm-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm 2. Rpm-ivh yum yum-metadata-parser-1.1.2-16.el6.x86_64.rpm 3. Rpm-ivh yum-3.2.29-81.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm Warning: yum-3.2.29-73.el6.centos.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY error: Failed dependencies: python-urlgrabber > = 3.9.1-10 is needed by yum-3.2.29-73.el6.centos.noarch
The above error sometimes occurs during installation, indicating why this problem is also installed on the package that lacks the version of python-urlgrabber 3.9.1. The reason is that the system previously installed a lower version of this python-urlgrabber, using the
Rpm-qa | grep python-urlgrabber
This command retrieves the place and then uninstalls it. The command is:
Rpm-e package name
Then install it and you won't get it wrong.
6. Configure yum warehouse
Modify the files under / etc/yum.repos.d/. It is recommended to back up first.
Cp / etc/yum.repos.d/rhel-source.repo / etc/yum.repos.d/rhel-source.repo.bak # backup vim / etc/yum.repos.d/rhel-source.repo # configuration
The modified content is as follows
[base] name=CentOS-$releasever-Base baseurl= http://mirrors.163.com/centos/6/os/$basearch/ gpgcheck=1 gpgkey= http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 # released updates [updates] name=CentOS-$releasever-Updates baseurl= http://mirrors.163.com/centos/6/updates/$basearch/ gpgcheck=1 gpgkey= http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 [extras] Name=CentOS-$releasever-Extras baseurl= http://mirrors.163.com/centos/6/extras/$basearch/ gpgcheck=1 gpgkey= http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6 # additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever-Plus baseurl= http://mirrors.163.com/centos/6/centosplus/$basearch/ enabled= 07. End
Clear the yum cache after saving and exiting
Yum clean all # Clearing cache yum install yum # test installation is not successful. The above is all the contents of the article "how to configure yum Source Repository for RHEL6". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.