Pre-emptive Request: Backing up installed packages.

Derek Broughton news at pointerstop.ca
Fri Jan 27 14:46:37 UTC 2006


James Gray wrote:

> On Fri, 27 Jan 2006 09:40, Peter Lieverdink wrote:
>> James Gray wrote:
>> > Hi Michael,
>> >
>> > I haven't done it in a while, but I believe the general idea is:
>> > sudo dpkg --get-selections > my-packages.txt
>> >
>> > save the "my-packages.txt" somewhere safe, you'll need it once the
>> > machine is rebuilt.
>> >
>> > then,
>> >
>> > sudo dpkg --get-selections < my-packages.txt
>>
>> Nearly. sudo dpkg --set-selection < my-packages.txt
> 
> Oops - cun-n-paste is a blessing and a curse huh?
> 
>> > sudo apt-get -f install
> 
> This isn't quite right either.  You need to:
> 1. run "sudo dselect" (not apt)
> 2. select "Install".

No you don't.  It's exactly what I did when I changed laptops last year.  
-- 
derek





More information about the ubuntu-users mailing list