apt-get

Useful apt / apt-get commands

What needs upgrading?

 apt update; apt list --upgradable

Installed list

 apt list --installed

Full upgrade

 apt update
 apt upgrade
 reboot

Install or upgrade PHP

 apt update
 apt install php7.4
 apt purge "php8.2*"
 apt autoremove
 rm -rf /etc/php/8.2/

apt-get is the old system

Before doing anything, always update the catalog:

 apt-get update

Tell me what you would upgrade:

 apt-get --simulate upgrade

Install OR upgrade e.g mutt

 apt-get install mutt

tst