apt clean alias for flatpak?
- User
apt clean alias for flatpak?
- Assistant
If you're looking for a way to clean up unused Flatpak data, similar to how you would use
apt cleanto clear the local repository of retrieved package files, you can use the following Flatpak command:bashflatpak uninstall --unusedThis command removes any Flatpak runtimes and applications that are no longer needed.
If you want to remove the cached files that Flatpak might have stored, you can also remove the cache manually:
bashrm -rf ~/.cache/flatpakYou can create an alias for the
flatpak uninstall --unusedcommand by adding the following line to your shell configuration file (like~/.bashrcor~/.zshrc):bashalias flatpak-clean='flatpak uninstall --unused'After adding the alias, remember to source your configuration file to make the alias available in your current session:
bashsource ~/.bashrcNow you can use
flatpak-cleanto remove unused Flatpak apps and runtimes.