Ask Your Question

Where dnf temporarily stores packages ?

asked 2018-06-07 15:14:38 -0500

R S gravatar image

I was looking into /var/cache/dnf but there some .solvx and .db files, where is .rpm ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-07 16:40:16 -0500

florian gravatar image

That is exactly where dnf stores packages!

For example: /var/cache/dnf/updates-4bd5ef968505a5fd/packages/

After a successful transaction, those .rpm files are deleted again. If you want to change that you need to add


to /etc/dnf/dnf.conf

edit flag offensive delete link more


How long it will keep them ? Thanks.

R S gravatar imageR S ( 2018-06-07 17:12:05 -0500 )edit

Not 100% sure about this, but I think after the packages are installed, it will be deleted. Can anyone confirm?

abadrinath gravatar imageabadrinath ( 2018-06-07 18:15:13 -0500 )edit

Packages are deleted immediately after successful installation. So, they are gone by the time the dnf command has concluded.

florian gravatar imageflorian ( 2018-06-07 20:57:14 -0500 )edit

If you want to keep them, just activate the keepcache option as described in my answer

florian gravatar imageflorian ( 2018-06-07 20:58:02 -0500 )edit

Question Tools



Asked: 2018-06-07 15:12:04 -0500

Seen: 127 times

Last updated: Jun 07 '18