Created
June 20, 2012 09:47
-
-
Save selvan/2959112 to your computer and use it in GitHub Desktop.
Local / LAN based apt-get
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### Machine A ########### | |
# create package index file | |
cd /var/cache/apt/archives/ | |
dpkg-scanpackages . /dev/null | gzip -c -9 > Packages.gz | |
# start mongoose (code.google.com/p/mongoose) / any webserver with document root as "/var/cache/apt/archives/" | |
mongoose -r /var/cache/apt/archives/ | |
####### Machine B ########### | |
# edit " /etc/apt/sources.list" | |
deb http://<<MACHINE_A>>:<<8080>> / | |
sudo apt-get update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment