[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Opschonen /var/cache/apt/archives



Gijs Hillenius <gijs@hillenius.net> writes:

> On  5 November 2020 22:22 Cecil Westerhof, wrote:
>
>> Ik had een /var van 9.2G waarbij 8.5G werd gebruikt en 178M vrij was.
>> Het bleek dat /var/cache/apt/archives/ erg groot was: 2,4G. Ik
>> probeerde apt autoclean, maar dat had geen effect. Dus heb ik maar apt
>> clean gebruikt. Nu heb ik 6.0G gebruikt en is 2.8G vrij.
>>
>> Is dit normaal?
>
> etc/apt/apt.conf.d/
>
> ik zou ^^^^ ergens kijken wat je hebt ingesteld:
>
> bijvoorbeeld:
>
> echo 'Binary::apt::APT::Keep-Downloaded-Packages "1";' | sudo tee
> /etc/apt/apt.conf.d/10apt-keep-downloads
>
> https://unix.stackexchange.com/questions/499035/disable-auto-clean-in-apt

Dat bestand is er niet.

Er is wel een bestand 01autoremove dat bevat:
APT
{
  NeverAutoRemove
  {
    "^firmware-linux.*";
    "^linux-firmware$";
    "^linux-image-[a-z0-9]*$";
    "^linux-image-[a-z0-9]*-[a-z0-9]*$";
  };

  VersionedKernelPackages
  {
    # linux kernels
    "linux-image";
    "linux-headers";
    "linux-image-extra";
    "linux-modules";
    "linux-modules-extra";
    "linux-signed-image";
    "linux-image-unsigned";
    # kfreebsd kernels
    "kfreebsd-image";
    "kfreebsd-headers";
    # hurd kernels
    "gnumach-image";
    # (out-of-tree) modules
    ".*-modules";
    ".*-kernel";
    "linux-backports-modules-.*";
    "linux-modules-.*";
        # tools
        "linux-tools";
        "linux-cloud-tools";
    # build info
    "linux-buildinfo";
    # source code
    "linux-source";
  };

  Never-MarkAuto-Sections
  {
    "metapackages";
    "contrib/metapackages";
    "non-free/metapackages";
    "restricted/metapackages";
    "universe/metapackages";
    "multiverse/metapackages";
  };

  Move-Autobit-Sections
  {
    "oldlibs";
    "contrib/oldlibs";
    "non-free/oldlibs";
    "restricted/oldlibs";
    "universe/oldlibs";
    "multiverse/oldlibs";
  };
};


Misschien moet ik gewoon af en toe 'apt clean' doen.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


Reply to: