Pre-emptive Request: Backing up installed packages.

Peter Lieverdink peter at cc.com.au
Thu Jan 26 23:11:56 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".

I did it via 'aptitude' yesterday, so that works too :-)

- P.




More information about the ubuntu-users mailing list