[Nottingham] Preserving a list of packages installed (Ubuntu but could be general!)

Peter Chang Peter.Chang at nottingham.ac.uk
Thu Sep 28 23:37:06 BST 2006


On Thu, 28 Sep 2006, Simon Huggins wrote:

> On Thu, Sep 28, 2006 at 07:38:32PM +0100, Peter Chang wrote:
> > $ dpkg -l > olddeb.lis
> 
> dpkg --get-selections  >somefile
> is the standard Debian/Ubuntu way to do this.
> 
> You can then use:
> dpkg --set-selections <somefile
> to mirror the package states though doing this between different
> versions of Debian/Ubuntu will lead to interesting things happening :)

Ah, watch out for the man page comment:

 Note that this will not actually install or remove anything, but just set
the selection state on the requested packages. You will need some other
application to actually download and install the requested packages. For
example, run dselect and choose "Install".

Peter



This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.




More information about the Nottingham mailing list