dpkg -l "*PKGNAME*"
(that's a lower case L option, not the digit One)
apt-get update
to update the list of possible packages. After, you can search for Debian package names with apt-cache search foo
. Once you have a package name, try apt-get install packagename
.
apt-get update
followed by apt-get dist-upgrade
. If it's a distribution upgrade, do apt-get -f dist-upgrade
.
dpkg -S /path/to/file
.
If your question isn't answered here, try HowTo or HowToQuestions.