Last active
August 29, 2015 14:13
-
-
Save jcataluna/930a62c774d6168bfb92 to your computer and use it in GitHub Desktop.
apt-get install without intenernet connection
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
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