Re: dnf upgrade vs dnf system-upgrade?
On Sat, 16 May 2020 17:14:53 +0100 (BST) Michael Young wrote: > On Sat, 16 May 2020, Ranjan Maitra wrote: > > > There is an option called "upgrade" under dnf system-upgrade. > > > > However: https://fedoramagazine.org/upgrading-fedora-31-to-fedora-32/ does > > not mention it and suggests using: > > > > sudo dnf system-upgrade download --releasever=32 > > > > What is the difference? > > dnf system-upgrade upgrade is what actually does the update behind the > scenes. The order is > > 1. dnf system-upgrade download - which downloads and tests the upgrade > > 2. dnf system-upgrade reboot - which reboots the system into what is > essentially an "upgrade" mode. > > 3 dnf system-upgrade upgrade - which is run automatically in this "upgrade" > mode before too much is started. The system should reboot normally after > the upgrade succeeds. > > You can't run dnf system-upgrade upgrade directly. I see, thank you. Perhaps the help file should be update to take out this option (which, as you say, can not be put by the user anyway). Ranjan ___ 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
Re: dnf upgrade vs dnf system-upgrade?
On Sat, 16 May 2020, Ranjan Maitra wrote: There is an option called "upgrade" under dnf system-upgrade. However: https://fedoramagazine.org/upgrading-fedora-31-to-fedora-32/ does not mention it and suggests using: sudo dnf system-upgrade download --releasever=32 What is the difference? dnf system-upgrade upgrade is what actually does the update behind the scenes. The order is 1. dnf system-upgrade download - which downloads and tests the upgrade 2. dnf system-upgrade reboot - which reboots the system into what is essentially an "upgrade" mode. 3 dnf system-upgrade upgrade - which is run automatically in this "upgrade" mode before too much is started. The system should reboot normally after the upgrade succeeds. You can't run dnf system-upgrade upgrade directly. Michael Young ___ 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
Re: dnf upgrade vs dnf system-upgrade?
On Wed, 6 May 2020 10:21:03 -0700 Samuel Sieb wrote: > On 5/6/20 7:42 AM, Ranjan Maitra wrote: > > So, my question: which of the two approaches is "better"? The latter is > > swankier while coming up, but is the one with the Windows-type message > > (Upgrading system -- please do not turn off your computer, or something > > similar) but if there is no difference, I prefer the first. > > A simple upgrade is somewhat risky because you are replacing almost > every component of the currently running system. It is very possible > that the terminal you are running the command in (unless you're on the > console) or the desktop could crash. Then you end up with a > half-upgraded system that might not function. The system-upgrade runs > offline with nothing else running so it's safe that way. Also, > system-upgrade sometimes has extra handling for certain situations. For > example, the upgrade to F32 required resetting all the modules. > > I will do regular updates live (I have run into issues with that a > couple of times though), but for new releases I always use system-upgrade. There is an option called "upgrade" under dnf system-upgrade. However: https://fedoramagazine.org/upgrading-fedora-31-to-fedora-32/ does not mention it and suggests using: sudo dnf system-upgrade download --releasever=32 What is the difference? Many thanks, Ranjan ___ 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
Re: dnf upgrade vs dnf system-upgrade?
On Wed, 6 May 2020 10:21:03 -0700 Samuel Sieb wrote: > On 5/6/20 7:42 AM, Ranjan Maitra wrote: > > So, my question: which of the two approaches is "better"? The latter is > > swankier while coming up, but is the one with the Windows-type message > > (Upgrading system -- please do not turn off your computer, or something > > similar) but if there is no difference, I prefer the first. > > A simple upgrade is somewhat risky because you are replacing almost > every component of the currently running system. It is very possible > that the terminal you are running the command in (unless you're on the > console) or the desktop could crash. Then you end up with a > half-upgraded system that might not function. The system-upgrade runs > offline with nothing else running so it's safe that way. Also, > system-upgrade sometimes has extra handling for certain situations. For > example, the upgrade to F32 required resetting all the modules. > > I will do regular updates live (I have run into issues with that a > couple of times though), but for new releases I always use system-upgrade. Thanks very much for this detailed explanation! It is helpful. Best wishes, Ranjan ___ 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
Re: dnf upgrade vs dnf system-upgrade?
On 5/6/20 7:42 AM, Ranjan Maitra wrote: So, my question: which of the two approaches is "better"? The latter is swankier while coming up, but is the one with the Windows-type message (Upgrading system -- please do not turn off your computer, or something similar) but if there is no difference, I prefer the first. A simple upgrade is somewhat risky because you are replacing almost every component of the currently running system. It is very possible that the terminal you are running the command in (unless you're on the console) or the desktop could crash. Then you end up with a half-upgraded system that might not function. The system-upgrade runs offline with nothing else running so it's safe that way. Also, system-upgrade sometimes has extra handling for certain situations. For example, the upgrade to F32 required resetting all the modules. I will do regular updates live (I have run into issues with that a couple of times though), but for new releases I always use system-upgrade. ___ 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
dnf upgrade vs dnf system-upgrade?
Hi, I recently (last night) upgraded the oldest of my machines. Because I was doing this from memory, I decided to do trial-and-error (not a good idea, I know, but it was late and I was lazy). So, I did: sudo dnf upgrade --releasever 31 and everything went through fine, including installation on the commandline. There was no interruption because it came up immediately in F31 (was previously F30). This morning, I went back and looked at the notes at https://fedoramagazine.org/upgrading-fedora-31-to-fedora-32/ and realized that I should have used sudo dnf system-upgrade download --releasever=32 and sudo dnf system-upgrade reboot so that is what I did to move the system to F32. This took a long time in coming up, during which the machine was unusable. So, my question: which of the two approaches is "better"? The latter is swankier while coming up, but is the one with the Windows-type message (Upgrading system -- please do not turn off your computer, or something similar) but if there is no difference, I prefer the first. Any thoughts? Many thanks and best wishes, Ranjan ___ 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