Pre-emptive Request: Backing up installed packages.

James Gray james at grayonline.id.au
Thu Jan 26 22:55:16 UTC 2006


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".

It's an interactive process so not really scriptable AFAIK.  But once this 
is done, you'll have all packages in the same state as before.

James
-- 
Everywhere I look I see NEGATIVITY and ASPHALT ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060127/78552c1a/attachment.pgp>


More information about the ubuntu-users mailing list