Debian package management (applies to Ubuntu, Mint, etc)

apt-cache search packageSearch for package. No need to use any wildcards
apt-cache show packageShow package information. Just plain package name - no need for version or hardware information

apt-get install package1 package2You can install multiple packages at one time: here we install the package1 and package2
sudo dpkg -i package.debTo install a Debian package. Please note that you can also install RPM packages by a) Installing required packages to convert the RPM sudo apt-get install alien dpkg-dev debhelper build-essential b) To convert a package from rpm to debian format, use command sudo alien package.rpm c) sudo dpkg -i justcreatedpackage.deb

apt-get remove packageRemove the package. This leaves configuration files though
apt-get purge packageSame as above plus removes actual packages and related configuration files
apt-get autoremoveAutoremove is used to remove packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed

apt-get updateUpdate repository data (=package data)
apt-get upgradeUpgrade the latest versions of all packages. This is safe to use (see next)
sudo apt-get dist-upgradeUpgrade the latest versions of all packages in order to satisfy dependencies... be careful as this may remove some packages (man apt-get to see the whole story)

dpkg -lList installed packages. To get the count by using command wc (word count) with -l option: dpkg -l | wc -l