Introduction
The apt (aptitude) command is just a a shortened version of the apt-get command. They are synonymous terms. Use the ‘apt’ command to update and manage your installed software packages. Use with Ubuntu or Debian Linux servers.
Update and upgrade your system
# apt update (date your local repository list)
# apt upgrade (update all installed packages)
# apt autoremove (remove packages that were installed as dependencies)
# apt autoclean (clean the /var/cache/apt/archive folder).
List all installed packages
dpkg --list
apt list --installed
Get a list of all packages that can be ugraded
apt list --upgradable
Remove packages with out uninstalling config files
sudo apt remove {package name}
Remove packages including config Files
sudo apt remove --purge {package name}
Repository location
sudo cat /etc/apt/sources.list
sudo ls /etc/apt/sources.list.d
Ref: https://askubuntu.com/questions/668582/false-disk-full-error-apt-get-unable-to-install-or-remove