Do I need "dnf check-update"?

SimSon

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


gvisoc

Well-Known Member
Joined
May 29, 2020
Messages
419
Reaction score
488
Credits
4,306
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,455
Reaction score
1,061
Credits
9,014
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
 
OP
SimSon

SimSon

New Member
Joined
Jun 6, 2022
Messages
15
Reaction score
7
Credits
120
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.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top