On 2020-05-12 19:26, Sreyan Chakravarty wrote:
>
>
> I have a couple of questions about System Upgradation via DNF from this doc:
>
> https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/

<rant>
I have a issue in the way words are used in the "Fedora Project".  I think my 
issue
stems from my days as a hardware engineer.

It seems that the words "upgrade" and "update" are used interchangeably.  I 
personally
don't see it that way.  To me "update" means to apply changes to the current 
"release"
release.  While "upgrade" means to go from one release to a newer release.
<\rant>

But, now on to your question.

>
> 1) If I want to update my system do I do:
>
> sudo dnf upgrade --refresh

The above will update the current system with packages that are in the 
repository "updates"
that are currently installed on your system.

>
> or
>
> sudo dnf system-upgrade reboot

The above command is not to be used on its own.  It is done after the command

sudo dnf system-upgrade download --refresh --releasever=###

These commands are used in combination to upgrade a system from one release to 
another.
Like F31 to F32.

The "dnf system-upgrade download" command will download the packages for the 
next release
and do a verification that the upgrade can proceed.  It will also download the 
new gpg-keys.

The actual install of the download packages will happen when doing "sudo dnf 
system-upgrade reboot"
in a "disconnected" fashion.

>
> What is the difference between the two ? And when should use one over the 
> other ?
>
> 2) Will
>
> sudo dnf upgrade --refresh
>
> result in a reboot or do I have to do it manually ?

The above will not result in a reboot.  Generally speaking the decision to 
reboot or not is up to the
user.  There are many opinions on when/why to reboot.  I can only tell you what 
I do....

I did "sudo dnf install tracer" on all my systems and then after every update I 
run

sudo tracer

And act on the advice given.


-- 
The key to getting good answers is to ask good questions.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to