Skip to content

Instantly share code, notes, and snippets.

@jcataluna
Last active August 29, 2015 14:13
Show Gist options
  • Save jcataluna/930a62c774d6168bfb92 to your computer and use it in GitHub Desktop.
Save jcataluna/930a62c774d6168bfb92 to your computer and use it in GitHub Desktop.
apt-get install without intenernet connection
From: http://askubuntu.com/questions/416937/apt-get-doesnt-work-behind-a-proxy
# 1st. Use --print-uris param to just get the deb files needed to perform installation
sudo apt-get install --print-uris --yes lib32ncurses5 lib32bz2-1.0 libxtst6:i386 lib32stdc++6 libgtk2.0-0:i386 > download.txt
# 2nd. Filter output
cat download.txt | grep 'http.*deb' | cut -d ' ' -f 1 | sed "s/'//g" > urls.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment