In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to build a local software source in centos". In daily operation, I believe many people have doubts about how to build a local software source in centos. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to build a local software source in centos". Next, please follow the editor to study!
As intranet computers are not convenient to connect to the Internet, it is very inconvenient for Linux computers to install and upgrade software, and the dependence between software is very complex. To solve this troublesome operation, we can cache the package to build a local software source.
1. The external network computer modifies the keepcache in vim / etc/yum.conf to 1. After each installation of the software, the cache package is not deleted, and then yum install downloads the required software. The software will be cached to the / var/cache/yum/ directory. The specific path is / var/cache/yum/x86_64/7Server/ol7_latest/packages/.
2. Copy packages to the intranet computer and modify the vi / etc/yum.repos.d/repo file. My file is / etc/yum.repos.d/public-yum-ol7.repo.
Add some content, and the enabled of other entries is set to 0.
[ol7_local] name=localSoftbaseurl= file:///root/packagesgpgcheck=0enabled=1
Then change to the parent directory of the package, here is / root, execute the following command, will not prompt that the repomd.xml file cannot be found
Createrepo. / packages/
Then run the following command to see if it is normal, and you can use yum install to install the software package you just downloaded from the Internet.
At this point in yum clean allyum repolist, the study on "how to build local software sources in centos" 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.
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.