Portál AbcLinuxu, 2. listopadu 2025 09:59
Ale teď vážně, asi se tam hromadí staré nepotřebné soubory, takže bych to normálně semtam z cronu smazal.
Jinak fedoru/centos už hodně dlouho nemám tak nevím zda yum má nějaký přepínač pro mazání své cache.
Jinak z man yum:
Clean Command
Command: clean
Performs cleanup of temporary files kept for repositories. This
includes any such data left behind from disabled or removed
repositories as well as for different distribution release
versions.
dnf clean dbcache
Removes cache files generated from the repository
metadata. This forces DNF to regenerate the cache files
the next time it is run.
dnf clean expire-cache
Marks the repository metadata expired. DNF will
re-validate the cache for each repository the next time it
is used.
dnf clean metadata
Removes repository metadata. Those are the files which DNF
uses to determine the remote availability of packages.
Using this option will make DNF download all the metadata
the next time it is run.
dnf clean packages
Removes any cached packages from the system.
dnf clean all
Does all of the above.
Jinak v konfiguračním souboru to můžeš změnit zda má stažená data po instalaci mazat:
keepcache Either `1' or `0'. Determines whether or not yum keeps the cache of headers and packages after successful installation. Default is '1' (keep files)
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.