Skip to content

Instantly share code, notes, and snippets.

@selvan
Created June 20, 2012 09:47
Show Gist options
  • Save selvan/2959112 to your computer and use it in GitHub Desktop.
Save selvan/2959112 to your computer and use it in GitHub Desktop.
Local / LAN based apt-get
####### 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