Last active
August 29, 2015 14:21
-
-
Save awesomebytes/9954dc2765cbef9fd7b8 to your computer and use it in GitHub Desktop.
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
How to get uris to download debians of packages (including already installed ones): | |
apt-get --print-uris -y download LIBRARYNAME | |
With: | |
apt-cache depends LIBRARYNAME | |
You'll get all the libraries that depends on. | |
Example: | |
apt-get --print-uris -y download libgps20 | |
Will get output: | |
'http://security.ubuntu.com/ubuntu/pool/main/g/gpsd/libgps20_3.4-2ubuntu0.1_i386.deb' libgps20_3.4-2ubuntu0.1_i386.deb 189334 sha256:9ac6465ec45b157909690ee28288d6c6523301d40bb0e6e304de8f5d596013e1 | |
And with: | |
apt-cache depends libgps20 | |
libgps20 | |
Depends: libbluetooth3 | |
Depends: libc6 | |
Depends: libdbus-1-3 | |
Depends: libstdc++6 | |
Depends: libusb-1.0-0 | |
PreDepends: multiarch-support | |
Recommends: gpsd | |
Conflicts: fso-gpsd | |
You get the dependencies. | |
With: | |
apt-get --print-uris -y download libgps20 | grep ^\' | cut -d\' -f2 | |
You get only the URL. | |
And to download everything in the current folder: | |
apt-get --print-uris install PACKAGE1 PACKAGE2 PACKAGE3 | grep ^\' | cut -d\' -f2 | xargs wget | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment