[Gllug] Repairing ubuntu packages
Mike Brodbelt
mike at coruscant.demon.co.uk
Mon Jan 10 18:45:34 UTC 2005
On Mon, 2005-01-10 at 16:49 +0000, Morris, Simon wrote:
> I can provide half the answer for you here.
>
> If you run the following command you get a list of the packages you
> currently have installed
>
> COLUMNS=200 dpkg -l | awk '{print $2}' > ~/packages.txt
>
> You could then (try) and restore the previous set of packages with
>
> Apt-get install `cat ~/packages.txt`
>
> However, this doesn't always work :(
A better route would be:-
dpkg --get-selections > package_list.txt
Then:-
dpkg --set-selections < package_list.txt
apt-get dselect-upgrade
HTH,
Mike.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list