Removing old packages
For packages that are now redundant on your system, there is an easy and quick way to remove these redundant packages to save on disk space, among other benefits.
To remove redundant packages from your system, do the following:
Open Konsole ()
Type
pkexec apt autoremoveand press EnterAuthenticate through the authentication dialog that appears
Check the output specifying what packages will be removed from your system in case there are any packages you would like to keep installed
Hint
If any packages you want to keep installed are listed there, type n on the question, press Enter, then type pkexec apt install (the package's name without brackets) and press Enter again to mark that package as manually installed and disqualify it from future autoremove operations.
Once you’re fine with everything
autoremovewants to remove, type y on the question and press Enter to confirm the removal operations.
When the operation completes and returns you to green and blue text on the left of your input, you can close Konsole with the close button in its titlebar.