apt-get search dpkg
apt-get install dpkg
primer za xmms
dpkg -L xmms
To list packages related to the editor vi:
dpkg -L '*vi*'
To see the entries in /var/lib/dpkg/available on two packages:
dpkg --print-avail elvis vim | less
To search the listing of packages yourself:
less /var/lib/dpkg/available
To remove an installed elvis package:
dpkg -r elvis
To install a package, you first need to find it in an archive or CDROM. The "available" file shows that the vim package is in section "editors":
cd /cdrom/hamm/hamm/binary/editors dpkg -i vim_4.5-3.deb
To make a local copy of the package selection states:
dpkg --get-selections >myselections
You might transfer this file to another computer, and install it there with:
dpkg --set-selections <myselections
man dpkg