In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In a nutshell, the virtual machine IP used as a warehouse is 192.168.149.129. I plan to use the software in the / usr/local/src directory as the YUM source. First, make sure that the http service is working.
1. I use apache, and the default root directory is / var/www/html, so I make a soft link in this directory:
[root@bogon html] # ln-s / usr/local/src. [root@bogon html] # lltotal 3lrwxrwxrwx 1 root root 14 Nov 2 11:13 src-> / usr/local/src
2. Use the createrepo command to format the repository:
[root@bogon src] # createrepo .Saving Primary metadataSaving filelists metadataSaving other metadataGenerating sqlite DBsSqlite DBs complete [root@bogon src] # lsrepodata [root@bogon src] # cd repodata/ [root@bogon repodata] # ls01a3b489a465bcac22a43492163df43451dc6ce47d27f66de289756b91635523-filelists.sqlite.bz2 6bf9672d0862e8ef8b8ff05a2fd0208a922b1f5978e6589d87944c88259cb670-other.xml.gz repomd.xml401dc19bda88c82c403423fb835844d64345f7e95f5b9835888189c03834cc93-filelists.xml.gz 7c36572015e075add2b38b900837bcdbb8a504130ddff49b2351a7fc0affa3d4-other.sqlite.bz25dc1e6e73c84803f059bb3065e684e56adfc289a7e398946574d79dac6643945-primary.sqlite.bz2 dabe2ce5481d23de1f4f52bdcfee0f9af98316c9e0de2ce8123adeefa0dd08b9-primary.xml.gz
3. Put the rpm package in the src directory, update it, and you should be able to see the package on the client:
[root@bogon src] # createrepo-- update .Spawning worker 0 with 1 pkgsSpawning worker 1 with 0 pkgsWorkers FinishedSaving Primary metadataSaving file lists metadataSaving other metadataGenerating sqlite DBsSqlite DBs complete
4. Verify and create a file ending in .repo under client / etc/yum.repos.d:
[root@localhost yum.repos.d] # cat test.repo [TestYum] name=TestYumbaseurl= http://192.168.149.129/srcgpgcheck=0enabled=1
5. Run yum clean all & & yum repolist, well, there is indeed a package, done.
Summary
The above is the whole content of this article. I hope the content of this article has a certain reference and learning value for everyone's study or work. Thank you for your support. If you want to know more about it, please see the relevant links below.
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.