Using apt, aptitude and dpkg

Using apt

Search & Install Package

~ # apt-cache search passenger
~ # apt-get install libapache2-mod-passenger

System Update

~ # apt-get update
~ # apt-get upgrade

Remove Package

~ # apt-get remove dcron

Using aptitude

Search & Install Package

~ # aptitude search passenger
~ # aptitude install libapache2-mod-passenger

dpkg

The dpkg tool is the lower level kit of the Debian/Ubuntu package manager.

Package Owing File

~ # dpkg --search /bin/bash
~ # dpkg --search $(which ssh)
~ # dpkg --search $(which javac)
. # cd /var/spool/at ; dpkg --search $(readlink -f ./stat/d/445/33dx)