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

How to build the Network YumSource Software Warehouse by RHEL6

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "RHEL6 how to build the network Yumsource software warehouse". In the daily operation, I believe that many people have doubts about how to build the network Yumsource software warehouse in RHEL6. The editor consulted all kinds of materials and sorted out the simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to build the network Yumsource software warehouse by RHEL6". Next, please follow the editor to study!

First, check the yum installation package of rhel itself

Rpm-qa | grep yum

Uninstall these software packages

Rpm-qa | grep yum | xargs rpm-e-- nodeps # uninstall rpm-qa without checking dependencies | grep yum # check whether the uninstall is clean

Third, the installation package to be configured

# the installation package 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

4. 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

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

Fifth, report the wrong treatment.

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 station 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=0

VII. End

Clear the yum cache after saving and exiting

Yum clean all # clear cache yum install yum # test installation is not so successful, the study on "how to build a network yum source software repository for RHEL6" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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