apt cheat sheet
- Help:
apt help
orman apt
- List all:
apt list
- List installed:
apt list --installed
- Search:
apt list '*mysql*'
- Update package list:
apt update
- Install:
apt install <pkg-name>
- Install without recommended packages:
apt-get install --no-install-recommends <pkg-name>
- See if package is installed:
apt policy <pkg-name>
- See which packages depend on a given package:
apt-cache rdepends --installed <pkg-name>
- See recommended dependencies of package:
apt-cache depends <pkg-name>| grep Recommends