In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you "how to configure apt-get offline source", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to configure apt-get offline source" this article.
1. Install dpkg-dev
The software is included in the official source, using the command:
Apt-get install dpkg-dev
Just install it.
two。 Install apache2
Use the command:
Apt-get install apache2
Just install it.
3. Collect the required deb installation packages
Collect all the required deb installation packages together and place them in a directory (this time under the http://IP host / home/debs/archives path)
Establish a connection to the above directory in the default directory / var/www of apache:
Cd / var/www
Ln-s / home/debs/archives deblink
4. Create script
Create a file:
Vi / bin/scan-deb
Add the following:
#! / bin/bash
Cd / var/www/deblink
Dpkg-scanpackages. / dev/null | gzip-9c > Packages.gz
Modify the execution permission:
Chmod uplix / bin/scan-deb
Execute:
Scan-deb
After the above steps are completed, you can see that a file named Packages.gz is generated under the / var/www/deblink path.
Enter http://IP/deblink/ in the browser to see the source of the successful configuration
Other machines install software through the configured source
Modify the source configuration files of other machines:
Vi / etc/apt/sources.list
Add a line:
Deb http://IP/deblink /
Update Source:
Apt-get update
These are all the contents of the article "how to configure apt-get offline sources". 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.