Do I need "dnf check-update"?

SimSon

New Member
Joined
Jun 6, 2022
Messages
15
Reaction score
8
Credits
120
Hey,
I was wondering if I need "dnf check-update" also I want to upgrade my packages.
Because when I have installed a new package, I always have:
sudo dnf check-update
and then
sudo dnf upgrade

But now I have realized that it is also "fresh / check / takes the newest packages from the mirror" when I only type:

sudo dnf upgrade

I also check the official Fedora Documentation, but there is nothing written that you must run "dnf check-update" before upgrading your Packages - https://docs.fedoraproject.org/en-US/quick-docs/dnf/

Therefore, I'm wondering if I need to use "dnf check-update" before running "dnf upgrade" or If I just can run "dnf upgrade".

Maybe someone knows if I must run "dnf check-update" or not.
 


dnf check-update

That just tells what's going to be updated. You get the same info with a..
dnf update
But dnf does cache of a timer. So if you want to force a rescan of new packages, you can do a
dnf clean all
 
That just tells what's going to be updated. You get the same info with a..
dnf update
But dnf does cache of a timer. So if you want to force a rescan of new packages, you can do a
dnf clean all
Thank you, for answered my question.
 

Members online

No members online now.

Top