Debian apt commands

I just installed a Debian machine.

And since I’m a very longtime RedHat/Fedora man now I’m struggling with the commands to install stuff.
Here are my notes:

apt update Updates the meta-data and repositories
apt upgrade Actually upgrades packages who need upgrading
apt install <package> Installs a package
apt list [package] Displays all packages known to apt

Or shows whether a package is installed

apt remove Removes the mentioned package
apt-file searches which pacakage supplies a program

(before running run apt-file update)

(I first had to install apt-file : apt install apt-file)

 

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *