From Fedora Project Wiki

(Created page with "In step 2, ''dnf update --refresh'' is it really necessary to upgrade every package on a system you are about to upgrade to new versions of those same packages anyway? I coul...")
 
No edit summary
Line 1: Line 1:
In step 2, ''dnf update --refresh'' is it really necessary to upgrade every package on a system you are about to upgrade to new versions of those same packages anyway?
Brianjmurrell: In step 2, ''dnf update --refresh'' is it really necessary to upgrade every package on a system you are about to upgrade to new versions of those same packages anyway?
I could certainly see wanting to update a subset of packages covering dnf and rpm perhaps but why do I need to update things like my desktop packages to latest on release N when I only going to turn around and update that N+1 right away?


I could certainly see wanting to update a subset of packages covering dnf and rpm perhaps but why do I need to update things like my desktop packages to latest on release N when I only going to turn around and update that N+1 right away?
[[User:Kparal|Kparal]] ([[User talk:Kparal|talk]]): The point is to update important system tools like dnf, rpm, systemd, dracut, grub, etc, because there might be (and sometimes really is) some bug that badly interferes with the upgrade procedure and an update fixes it. So if you haven't updated in a long time, this command makes sure you have it fixed before you attempt to upgrade. If you use and update your system regularly, the amount of updates should be quite small, even though it includes all packages. If, for some reason, you don't want to update everything, you don't need to, as long as you make sure you update all the ''important'' packages (which can affect the upgrade). However, it can be quite tricky to find out which those are. If you want to go this route, I'd rather recommend you to exclude some known and large desktop apps (like libreoffice and firefox) than to try to make a list of every important low-level tools to update (you're very likely to miss something this way).

Revision as of 12:43, 23 November 2015

Brianjmurrell: In step 2, dnf update --refresh is it really necessary to upgrade every package on a system you are about to upgrade to new versions of those same packages anyway? I could certainly see wanting to update a subset of packages covering dnf and rpm perhaps but why do I need to update things like my desktop packages to latest on release N when I only going to turn around and update that N+1 right away?

Kparal (talk): The point is to update important system tools like dnf, rpm, systemd, dracut, grub, etc, because there might be (and sometimes really is) some bug that badly interferes with the upgrade procedure and an update fixes it. So if you haven't updated in a long time, this command makes sure you have it fixed before you attempt to upgrade. If you use and update your system regularly, the amount of updates should be quite small, even though it includes all packages. If, for some reason, you don't want to update everything, you don't need to, as long as you make sure you update all the important packages (which can affect the upgrade). However, it can be quite tricky to find out which those are. If you want to go this route, I'd rather recommend you to exclude some known and large desktop apps (like libreoffice and firefox) than to try to make a list of every important low-level tools to update (you're very likely to miss something this way).