Ask Your Question
1

Where dnf temporarily stores packages ?

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

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
3

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

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

keepcache=true

to /etc/dnf/dnf.conf

edit flag offensive delete link more

Comments

How long it will keep them ? Thanks.

R S gravatar imageR S ( 2018-06-07 17:12:05 -0600 )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 -0600 )edit
1

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 -0600 )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 -0600 )edit

Question Tools

2 followers

Stats

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

Seen: 117 times

Last updated: Jun 07 '18