Ask Your Question

Why did grub change after running "sudo dnf update"?

asked 2016-07-17 08:57:37 -0500

powergame gravatar image

I am using Fedora 22. Well, I ran "sudo dnf update" in gnome-terminal and let it download and install what seemed to be update of existing packages. In the next boot-up of the system, I noticed a change in grub, with a new entry added. Formerly, there were only two Fedora entries besides my Windows partitions and now I see another added. I am not sure which one is new. Link to related screenshot follows:

The first grub menu item is: Fedora (4.4.13-200.fc22.x86_x64) 22 (Twenty Two)
The second is: : Fedora (4.0.4-301.fc22.x86_x64) 22 (Twenty Two)

I know one of these two items is new, and appeared after I executed "sudo dnf update", but do not know which and why. It is noteworthy that when I select the first item in the menu with apparently higher version, the boot-up screen is a progressing bar like this, and then the display is 1024x768 px (huge) instead of the usual 1920x1080 resolution. Does anyone know what this change is all about?

edit retag flag offensive close merge delete


BTW: time to upgrade to a supported release of Fedora. Your Fedora 22 is End-of-Life since yesterday, and not supported with important (security) updates anymore!

florian gravatar imageflorian ( 2016-07-20 13:56:47 -0500 )edit

So, should I do this upgrade by the very "sudo dnf update" or downloading a new ISO and starting over?

powergame gravatar imagepowergame ( 2016-07-21 01:02:53 -0500 )edit

dnf update does only update packages within your current release. What you need is a release upgrade. The process is described here. You don't need to download the iso and reinstall the entire system, and you cannot upgrade to the next release using the .iso, only dnf system-upgrade Just follow strictly the five steps described here, and make sure you select the Fedora release you want to upgrade to by adjusting --releasever=2x in step 4.

florian gravatar imageflorian ( 2016-07-21 10:22:48 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2016-07-17 15:29:12 -0500

updated 2016-07-19 11:42:02 -0500

Since your second boot entry is all the way back at kernel version 4.0.4, it's likely that this was your first dnf upgrade in quite some time (do that more often! It's really important for the stability and security of your operating system!)

So, the change in the GRUB menu which you notice is adequately explained by aeperezt up there; when Fedora installs a new kernel, it keeps up to two old kernel versions (by default) which you can select to boot into via GRUB in case there's some problem with your new kernel.

The change in your display resolution (which, as I understand your question to be indicating, occurs within your desktop environment) is likely a result of a massive amount of patches applied to your X Server, graphics driver, and other software. If you want to review the packages affected by your last dnf operation, you can perform sudo dnf history info and the details of your last upgrade operation will be displayed for you. It'll probably show hundreds of package upgrade operations (if my assumption about your upgrade history is correct) and it'll be kinda hard to trace what, exactly, within that big operation is directly responsible for the resolution change.

But don't let this deter you from future upgrade operations! Fedora upgrades are very stable, and they're very important; I strongly recommend getting in the habit of doing them regularly (I check and perform them daily). In addition to the security and stability benefits, the reduction in the volume of patches per operation that you'll experience as a result will make it easier to trace and resolve any issues which do occur.

edit flag offensive delete link more


Does "sudo dnf update" just update my kernel or all packages on a system?

powergame gravatar imagepowergame ( 2016-07-19 15:43:02 -0500 )edit

It will update every package on your system (that is, replace the old package with the latest-available package version for that software). Technically, the kernel is never "updated", but a new one is installed, with the old package retained (for three kernel packages, by default).

bitwiseoperator gravatar imagebitwiseoperator ( 2016-07-19 15:47:22 -0500 )edit

Thanks, actually, after applying the said update, I feel the system has become significantly more efficient (no overheating anymore).

powergame gravatar imagepowergame ( 2016-07-19 15:51:56 -0500 )edit

You are likely to see an unbelievable amount of benefits from regular upgrade operations. Open source software moves very quickly. It is pretty amazing.

bitwiseoperator gravatar imagebitwiseoperator ( 2016-07-19 15:52:35 -0500 )edit

answered 2016-07-17 13:14:59 -0500

aeperezt gravatar image

Fedora keeps 3 kernels as boot options, because if a new update of the kernel do not work for you the you can boot with previous version of the kernel. Normally the first one is the latest kernel update.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-07-17 08:53:33 -0500

Seen: 296 times

Last updated: Jul 19 '16