Getting list of installed packages for later re-installation
Alexander Skwar
listen at alexander.skwar.name
Tue Jul 4 18:43:36 UTC 2006
Hello!
To (maybe) fix my problems with Dapper, I'd like to reinstall Dapper.
After finishing the installation, I'd like to re-install all the
now missing packages and remove the unneeded packages, so that I'll
have all the packages installed, that I've now got installed. What's
the best way to do this?
To get a list of the installed packages, I wanted to do:
dpkg -l | awk '{print $2}' > ListOfInstalledPackages.txt
And to later reinstall those packages, I tought about:
apt-get install `cat ListOfInstalledPackage.txt`
Will this work? Will this install all those packages that are missing
from the new installation? How about removing the unneeded packages -
will they be removed? Because of the "install" command, I "suspect" not :)
How would I go about this?
Thanks,
Alexander Skwar
--
Die heutige Presse hat nichts so nötig, wie einen
Geistesblitzableiter.
-- Ephraim Kishon (alias Ferenc Hoffmann)
More information about the ubuntu-users
mailing list