On Thu, 6 Mar 2025 at 15:46, Henrik Ahlgren <pa...@seestieto.com> wrote:
>
> Pro tip: running "sudo apt clean" often frees up significant disk space
> (relatively, in machines with tiny storage capacity) by removing all
> cached package files from /var/cache/apt/archives.

Hi, another pro-tip:
While 'apt-get' does keep downloaded packages in its cache by
default, 'apt' does NOT do this, unless its default configuration is
changed.

So 'apt clean' is potentially less useful than 'apt-get clean' in
the default situation.

Explained here:
  
https://superuser.com/questions/1405001/why-does-apt-do-not-store-downloaded-packages-anymore

Note the last line below:
$ apt-config dump | grep -E 'Cache|Downloaded'
Dir::Cache "var/cache/apt";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Binary::apt::APT::Cache "";
Binary::apt::APT::Cache::Show "";
Binary::apt::APT::Cache::Show::Version "2";
Binary::apt::APT::Cache::AllVersions "0";
Binary::apt::APT::Cache::ShowVirtuals "1";
Binary::apt::APT::Cache::Search "";
Binary::apt::APT::Cache::Search::Version "2";
Binary::apt::APT::Cache::ShowDependencyType "1";
Binary::apt::APT::Cache::ShowVersion "1";
Binary::apt::APT::Keep-Downloaded-Packages "0";

Reply via email to