Ask Your Question
1

change DNF and gnome software staging location?

asked 2017-07-13 14:03:49 -0600

lovepump gravatar image

Hello,

I'm fairly frustrated by the fact that both DNF and the gnome software program use /var as a staging location for upgrading to fedora 26.

I made a separate 20 gig var partition when I installed fedora 25, for historical reasons. Often, the /var location used to fill up with "useless error crap". To prevent the system from not being able to respond due to a "full" /var folder on the root filesystem, this was the key.

I want to upgrade to fedora 26, I do not want to repartition my drive, I am triple booting several different linux installations and I don't want to repartition the whole drive and reinstall 3 different distributions just because 20 gigs isn't enough room to "upgrade" fedora from /var.

I have TONS of free space on other partitions. I would like to direct EITHER dnf or the gnome software upgrade options to use it, instead of inflexibly erroring-out because /var is full.

I've taken a look at "man dnf", yet no option gives any information about changing the default download and "operating" location.

Any help deciphering the dnf or gnome software options for changing download location would be appreciated.

thanks!

edit retag flag offensive close merge delete

Comments

20 gigs on /var should be more than enough to run a system-upgrade from F25 to F26.

florian gravatar imageflorian ( 2017-07-13 18:58:50 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2017-07-14 05:25:34 -0600

Aeyoun gravatar image

These are non-configurable options. GNOME Software uses the PackageKit cache and not the DNF cache. Stick with DNF until at least Fedora 27.

You can try to copy over your /var/cache/dnf/ directory to another disk, and then symlink /var/cache/dnf/ to it’s new location. This isn’t really recommended. It could cause problems if all your disks aren’t mounted in the correct order. If you could move it to a temporary home on your root / partition, then that should cause you the least amount of problems.

Speaking more generally, though: 20 GB should be more than enough. Have you investigated what is taking up space in your /var/? You can use the Disk Usage Analyzer (baobab) and point it to /var/ to see the largest files in that directory.

edit flag offensive delete link more

Comments

+1, You may need to run "restorecon /var/cache/dnf" after creating the symlink; to make sure the labelling of the file in the new location is ok.

villykruse gravatar imagevillykruse ( 2017-07-14 11:14:23 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-07-13 14:03:49 -0600

Seen: 675 times

Last updated: Jul 14 '17