From 8099c48ae0fcdc5f6a0d9a68e81ea1b964188534 Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Jun 25 2022 07:09:08 +0000 Subject: Replace `dnf update` with `dnf upgrade`. The `dnf upgrade` is better than the `dnf update`. The `dnf update` works, but it is a deprecated alias of the `upgrade`. ``` $ rpm -q dnf dnf-4.13.0-1.fc36.noarch $ man dnf ... Upgrade Command Command: upgrade Aliases: up Deprecated aliases: update, upgrade-to, update-to, localupdate ... ``` --- diff --git a/modules/ROOT/pages/dnf-system-upgrade.adoc b/modules/ROOT/pages/dnf-system-upgrade.adoc index 3b90aad..3eaed80 100644 --- a/modules/ROOT/pages/dnf-system-upgrade.adoc +++ b/modules/ROOT/pages/dnf-system-upgrade.adoc @@ -153,7 +153,7 @@ sudo dnf repoquery --duplicates [NOTE] ==== -Run `sudo dnf update` first, as this list is only valid if you have a fully updated system. +Run `sudo dnf upgrade` first, as this list is only valid if you have a fully updated system. Otherwise, you will see a list of installed packages that are no longer in the repositories because an update is available. This list may also contain packages installed from third-party repositories who may not have updated their repositories. ==== diff --git a/modules/ROOT/pages/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops.adoc b/modules/ROOT/pages/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops.adoc index 38babb0..efdb346 100644 --- a/modules/ROOT/pages/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops.adoc +++ b/modules/ROOT/pages/how-to-set-nvidia-as-primary-gpu-on-optimus-based-laptops.adoc @@ -38,7 +38,7 @@ First, you need to see if you really want to achieve this. == Step #1: Update from the existing repositories Execute ---- -sudo dnf update +sudo dnf upgrade ---- once to update all your packages first. @@ -54,7 +54,7 @@ Select *RPM Fusion for Fedora 32 - Nonfree - NVIDIA Driver* and *ENABLE* it. It == Step #3: Update from the newly added repositories Execute ---- -sudo dnf update --refresh +sudo dnf upgrade --refresh ---- to fetch all available updates from the newly added repository. diff --git a/modules/ROOT/pages/howto-file-a-bug.adoc b/modules/ROOT/pages/howto-file-a-bug.adoc index ff78141..5e3783d 100644 --- a/modules/ROOT/pages/howto-file-a-bug.adoc +++ b/modules/ROOT/pages/howto-file-a-bug.adoc @@ -59,7 +59,7 @@ These periodically check for updates and notify users. You can also use the default package manager `dnf` to check and update your system. Only users with administrator privileges can do so: - $ sudo dnf update --refresh + $ sudo dnf upgrade --refresh === Step 2: Check for already filed bugs diff --git a/modules/ROOT/pages/upgrading.adoc b/modules/ROOT/pages/upgrading.adoc index 5aae97e..f4b1b90 100644 --- a/modules/ROOT/pages/upgrading.adoc +++ b/modules/ROOT/pages/upgrading.adoc @@ -75,7 +75,7 @@ Upgrading between Fedora releases without the xref:dnf-system-upgrade.adoc[DNF S [[sect-upgrade-from-prerelease-to-final-release]] == Upgrading from pre-release (beta) to final public release (stable) -If you are using a pre-release of Fedora, you shouldn't need to do anything to get the final public release, other than updating packages as they become available. You can use `sudo dnf update` or wait for desktop notification. When the pre-release is released as final, the `fedora-repos` packages will be updated and your `updates-testing` repository will be disabled. Once this happens (on the release day), it is highly recommended to run `sudo dnf distro-sync` in order to align package versions with the current release. +If you are using a pre-release of Fedora, you shouldn't need to do anything to get the final public release, other than updating packages as they become available. You can use `sudo dnf upgrade` or wait for desktop notification. When the pre-release is released as final, the `fedora-repos` packages will be updated and your `updates-testing` repository will be disabled. Once this happens (on the release day), it is highly recommended to run `sudo dnf distro-sync` in order to align package versions with the current release. [[sect-how-do-i-upgrade-to-rawhide-and-branched]] == How do I upgrade to Rawhide and Branched? diff --git a/modules/ROOT/pages/wine.adoc b/modules/ROOT/pages/wine.adoc index 65ca5ee..f296662 100644 --- a/modules/ROOT/pages/wine.adoc +++ b/modules/ROOT/pages/wine.adoc @@ -123,7 +123,7 @@ Before reporting bugs against Wine please make sure your system is fully up to date. .... -dnf update +dnf upgrade .... Also check if a newer version is available in updates-testing.