[wellylug] dpkg --list on Ubunut

Alastair Porter alastair at porter.net.nz
Fri Nov 7 17:17:22 NZDT 2008


On Fri, 2008-11-07 at 16:39 +1300, Grant McLean wrote:
> On Fri, 2008-11-07 at 14:56 +1300, Carl Turney wrote:
> > Is it possible/safe to try running dpkg --list
> 
> As others have pointed out, dpkg --list is safe, but perhaps what you
> really want is:
> 
>   dpkg --get-selections

The cool thing with this is that you can save this to a file and
re-import it after you reinstall to get the same packages installed:

dpkg --get-selections > dpkg-selections
dpkg --set-selections < dpkg-selections
apt-get -u dselect-upgrade

See http://www.wlug.org.nz/AutomatedInstallation for more.

Alastair



More information about the wellylug mailing list