apt-get update
aptitude install postgresql
use
aptitude install postgresql
use
apt-get
or aptitude
or Ubuntu Software Center. dpkg -i package-file-name -i is to install a package.
dpkg -l | grep 'tcl'
apt-get purge package name