Pre-emptive Request: Backing up installed packages.
Peter Lieverdink
ubuntu at cafuego.net
Thu Jan 26 22:40:57 UTC 2006
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
> sudo apt-get -f install
Cheers,
- P.
More information about the ubuntu-users
mailing list