Do I need "dnf check-update"?

SimSon

New Member
Joined
Jun 6, 2022
Messages
13
Reaction score
6
Credits
110
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.
 


gvisoc

Well-Known Member
Joined
May 29, 2020
Messages
366
Reaction score
430
Credits
3,780
Not really. I think that's used, in practice, by the UI software managers so thta they can notify you.
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,381
Reaction score
1,008
Credits
8,458
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
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top