Synaptic List saves as zero bytes

Brummelen, M. van (ICT) m.van.brummelen at antoniusziekenhuis.nl
Thu Jun 25 08:38:57 UTC 2009


You don't need superpowers(sudo) for dpkg --get-selections :)

Regards,
Martijn van Brummelen


-----Oorspronkelijk bericht-----
Van: ubuntu-users-bounces at lists.ubuntu.com namens Nils Kassube
Verzonden: do 25-6-2009 10:28
Aan: ubuntu-users at lists.ubuntu.com
Onderwerp: Re: Synaptic List saves as zero bytes
 
Dave M G wrote:
> I'm trying to save my current list of installed packages, so I can
> restore my system as easily as possible if I need to recover from
> backup.
>
> However, no matter what I do, the file that gets created is always
> completely empty, and is zero bytes.

Well, you didn't tell us _what_ you tried to save a file. Anyway, I'll 
rephrase what was posted some time ago on the Ubuntu-de list: You can 
use the command

sudo dpkg --get-selections > packages.list

in a terminal to save a file "packages.list" with a list of the 
installed packages. Then use the commands

sudo dpkg --set-selections < packages.list
sudo aptitude update
sudo aptitude upgrade

in a terminal to restore the packages from the saved list.


Nils


-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users





More information about the ubuntu-users mailing list