Debian Package Manager

Tips about using Debian package system.

Installed packages

List installed packages
dpkg -l
List installed packages, extract package name and put that in a file
dpkg -l |grep '^ii '|sed -r 's/ii\s+(\S+)\s+.*/\1/i' > list.txt

Bulk packages installation

Shall we do that with aptitude rather than apt-get?

sudo for i in `cat list.txt`; do
yes| apt-get install $i

Reconfigure an installed package

dpkg-reconfigure exim4-config where exim4-config is the name of the package you want to configure.