Fedora 36 dnf update or dnf upgrade?

I am running Fedora 36 Workstation for helping testing the upcoming version. Every day I check if new updates are available, but Gnome Software Updates does not show the same as dnf upgrade. During the rollout of a upcoming version is it better to use sudo dnf upgrade or dnf update?

If you are on fedora36 it is currently not in beta but it will be and version upgrade required dnf upgrade command but you are on 36 so here you need dnf update
Which will give you fixes and security enhancements.

dnf upgrade is an alias of dnf update. Take a look at the “Upgrade command” section in man dnf for more information and aliases.

Just a note: dnf upgrade is not the same as dnf system-upgrade—system-upgrade is used for upgrading/updating from a Fedora release to the next.

gnome-software has it’s own cache, which can be refreshed using the “refresh” button in it, or using pkcon refresh force (the packagekit command line).

4 Likes

You are all tight in the sense of the documentation. If if put dnf update into my system (F36) and I got the message “nothing to do…”. If I put dnf upgrade into my system, oh wonder, I got the newest updates. What’s going on here?

Sometime it also happen to me but with different command. If I use dnf check-update it will give list of available update packages but when I run dnf upgrade there a message “nothing to do”.

But I think may be it just my system messed up with meta update. Usually I just add --refresh to get newer list update. For your case may be you want to use something like sudo dnf update --refresh.

2 Likes

+1, the dnf metadata update may have happened between the two invocations. I too tend to use --refresh each time to ensure i get the latest metadata (i only update my systems once a week at most).

If it isnt metadata, there’s something off somewhere. Not sure at the moment.

For me F36 is not mature enough because it’s on an early stage and so I will wait until the things will get better. In Fedora 35 Workstation all works fine wihtout any --refresh parameter. Normally I use only the automatic processes of Gnome software, which offers all updates for my system and so the F35 system runs without any issues. :nauseated_face:

I read that section in man dnf but is not clear the reason to use upgrade - with alias means that upgrade does the same than update right? so why upgrade was created?

So that people don’t have to remember which command it is exactly. Many package managers use “upgrade” or “update”, so it’s natural that people might not remember which one to use. It’s an ease-of-use feature.

2 Likes

I see, and because dnf system-upgrade exists it has sense, otherwise at a first glance upgrade seems to do the same as dnf system-upgrade does (of course if it does not exist)

How a friendly observation, it for apt is not true, therefore sudo apt update is not the same as sudo apt upgrade - the former must be executed first and then the latter.