Clear APT data
Advanced Package Tool (APT) is a free software user interface that works with core libraries to handle the installation and removal of software on Debian, and Debian-based Linux distributions. See also: "APT | Debian Wiki".
Advanced Package Tool (APT) is a free software user interface that works with core libraries to handle the installation and removal of software on Debian, and Debian-based Linux distributions. See also: "APT | Debian Wiki".
This script removes package file lists. APT stores a copy of those files (in "/var/lib/apt/lists/") and searches are done within those local files to avoid going through the network for every search. An "apt-get update" will repopulate the necessary information and recreate the list file. The list files should be recreated as they get lost over time.
This script runs the "clean" command. It clears out the local repository of retrieved package files, meaning that it deletes downloaded packages (".deb") already installed (and no longer needed). It clears the whole "/var/cache/apt/archives/" directory that contains a copy of each downloaded ".deb" file. It clears the cache but does not delete the lists.
DNF or Dandified YUM is the next-generation version of YUM, a package manager for .rpm-based Linux distributions. It has been the default package manager since Fedora 22 in 2015, Red Hat Enterprise Linux 8, and OpenMandriva. DNF stores temporary files for repositories such as repository metadata, cache files generated from the repository metadata, and cached packages. "dnf clean all" cleans all temporary files.
This script clears the Flatpak cache. Flatpak creates temporary files as "/var/tmp/flatpak-cache-*". These files can fill up a large portion of the disk, and reveal usage patterns. Flatpak stores cache files in "~/.cache/flatpak/system-cache/" which replaces the directory used in older versions ("~/.local/share/flatpak/system-cache/").
Flatpak, formerly known as xdg-app, is a utility for software deployment and package management for Linux. It is supported out-of-the-box by many Linux distributions including CentOS, Clear Linux, elementary OS, Endless OS, Fedoora Workstation, Fedora Silverblue, Linux Mint, Pop! OS, PureOS, SteamOS, Ubuntu MATE and Zorin OS.
This script runs the "autoclean" command which removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control.
This script runs the "autoremove" command, which removes packages that were automatically installed to satisfy dependencies for other packages and are now no longer needed. This script also purges removed packages, which means that the configuration files of the removed packages are deleted too.
The Snap cache is stored at "/var/lib/snapd/cache/". Clearing the Snap cache is safe and can be done without causing any issues while running Snap.
Snap is a software packaging and deployment system developed by Canonical. The packages are called snaps, and the tool for using them is called snapd. Snap is available on many distros and is supported out-of-the-box by distros such as Ubuntu, Kubuntu, Xubuntu, Manjaro, Zorin OS, KDE Neon and Solus among others.
The Yellowdog Updater, Modified (YUM) is a free and open-source command-line package-management utility for computers running the Linux operating system using the RPM Package Manager. It has been shipped by default by distros such as Fedora, Rocky Linux, AlmaLinux, CentOS. YUM stores cached packages, header files, and metadata to determine the remote availability of packages, SQLite database cache, rpmdb cache. Every YUM plugin may store its own cache. "yum clean all" cleans all temporary files....
This script removes all disabled Snap packages. Old and unused snaps get "disabled" by Snap. This is due to the snapd that keeps multiple revisions of the same package. Disabled state means that the binaries and services of the snap will no longer be available. But all the data is still available, and the snap can easily be enabled again.
This script removes runtimes and extensions that are not used by installed applications by running "flatpak uninstall --unused". Flatpak doesn't automatically remove a runtime after the last application that depends on it is uninstalled. This may cause issues with disk space or leave hints about what software has been installed before. This happens because when a Flatpak package is uninstalled, its runtime dependencies are not automatically uninstalled, as "flatpak uninstall" can uninstall eithe...