where is the list of installed packages kept?
peter.garrett at optusnet.com.au
Sat Jan 20 06:50:52 UTC 2007
On Fri, 19 Jan 2007 18:27:26 -0500
stan <stanb at panix.com> wrote:
> > $ cat /var/lib/dpkg/status | grep -B1 'ok installed' > selections
> > >From there you could use sed an create something that could be recovered
> > using:
> > $ sudo dpkg --set-selections < myselections
> > $ sudo apt-get -u dselect-upgrade
> > See the Debian Reference; specifically: 6.3.4 Recover package selection
> > data and 6.4.9 Record/copy system configuration.
> > Of course, others may know an easier way. Good Luck.
I think you can get a list with something like
dpkg --get-selections > package.list
then feed that to dpkg --set-selections :
dpkg --set-selections < package.list
More information about the ubuntu-users