[DNF System Upgrade] Don't hardcode versions

The current version of the page includes hardcoded, obsolete references
to e.g. Fedora 28, 30, and 31, which can be confusing.

Replace references with attributes, and add a new one, `{NEXTNEXTVER}`
for the branched example.

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
This commit is contained in:
Michel Alexandre Salim 2021-02-05 16:20:44 -08:00
parent a650115d3c
commit 7ff1f45a34
No known key found for this signature in database
GPG key ID: 8B229D2F7CCC04F2
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,4 @@
:MAJOROSVER: 33
:NEXTVER: 34
:NEXTNEXTVER: 35
:PREVVER: 32

View file

@ -50,16 +50,16 @@ sudo dnf system-upgrade download --refresh --releasever={MAJOROSVER}
----
+
Change the `--releasever=` number if you want to upgrade to a different release.
Most people will want to upgrade to the latest stable release, which is `{MAJOROSVER}`, but in some cases, such as when you're currently running Fedora `27`, you may want to upgrade just to Fedora `28`.
Most people will want to upgrade to the latest stable release, which is `{MAJOROSVER}`, but in some cases, such as when you're currently running an older release than `{PREVVER}`, you may want to upgrade just to Fedora `{PREVVER}`.
You can also use `{NEXTVER}` to upgrade to a link:https://fedoraproject.org/wiki/Releases/Branched[Branched] release, or `rawhide` to upgrade to link:https://fedoraproject.org/wiki/Releases/Rawhide[Rawhide]. Note that neither of these two are stable releases.
+
If you are upgrading to Rawhide, you will need to import the RPM GPG key for it.
This will be the highest numbered key version in `/etc/pki/rpm-gpg/`.
For example, if there is a Branched release that is `30`, then you should look for a `31`, and if there is currently no Branched release, it will be `30`:
For example, if there is a Branched release that is `{NEXTVER}`, then you should look for a `{NEXTNEXTVER}`, and if there is currently no Branched release, it will be `{NEXTVER}`:
+
[source,bash]
[source,bash,subs="attributes"]
----
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-primary
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-{NEXTVER}-primary
----
. If some of your packages have unsatisfied dependencies, the upgrade will refuse to continue until you run it again with an extra `--allowerasing` option.