Re: Generating a list (with urls) of packages needed by apt-get dist-upgrade
--- Marco <brbromo@gmail.com> wrote:
> 2. Generate (at home) a list (with urls) of packages needed for
> "apt-get dist-upgrade"
You can use something like this:
sudo apt-get -dy --print-uris upgrade | grep "^'" | \
while read uri x; do uri=${uri#\'}; uri=${uri%\'}; \
echo $uri; done >> ./PackageList.txt
> 3. Use that list to download all (and just) the needed packages at the
> university.
cd /some/dir && wget -ci ./PackagesList.txt
> 4. Put them on a cdrw or usb key.
> 5. Do "apt-get dist-upgrade" with packages from the cdrw or usb key.
sudo cp /usbstick/*.deb /var/cache/apt/archives && sudo apt-get
dist-upgrade
> Is this real life? Is this just fantasy?
I haven't tested it, but it ought to work.
-- Thomas Adam
=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor" -- http://linuxgazette.net
"<shrug> We'll just save up your sins, Thomas, and punish
you for all of them at once when you get better. The
experience will probably kill you. :)"
-- Benjamin A. Okopnik (Linux Gazette Technical Editor)
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
Reply to: