Skip to content

Flatpak - Remove unused packages and repair

Using flatpak is very useful for when you need a package or few and not pollute your main or any machines file system.

Removing unused packages is simply performed by using the command below in your terminal fo choice.

flatpak uninstall --unused


Verifying and/or repairing your flatpak packages can be done using the command below.

flatpak repair

Updating and Cleaning using 'apt' and 'dpkg' on the command line

The following are the commands I use to update my Debian (or any apt) system. These commands will help you update your system and then clean update after, including any cruft.

sudo apt update

sudo apt full-upgrade

sudo apt autoremove

sudo apt purge `dpkg --list | grep ^rc | awk '{ print $2; }'`

sudo apt clean all


Hope this helps you update then clean up afterwards.