Este conteúdo não está disponível no idioma selecionado.
Chapter 5. Updating RHEL content
With the DNF software management tool, you can check if your system has any pending updates. You can list packages that need updating and choose to update a single package, multiple packages, or all packages at once. If any of the packages you choose to update have dependencies, these dependencies are updated as well.
5.1. Checking for updates Copiar o linkLink copiado para a área de transferência!
To identify which packages installed on your system have available updates, you can list them.
Procedure
Check the available updates for installed packages:
dnf check-update
# dnf check-updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow The output returns the list of packages and their dependencies that have an update available.
5.2. Updating packages Copiar o linkLink copiado para a área de transferência!
You can use DNF to update a single package, a package group, or all packages and their dependencies at once.
When applying updates to the kernel, dnf always installs a new kernel regardless of whether you are using the dnf upgrade or dnf install command. Note that this only applies to packages identified by using the installonlypkgs DNF configuration option. Such packages include, for example, the kernel, kernel-core, and kernel-modules packages.
Procedure
Depending on your scenario, use one of the following options to apply updates:
To update all packages and their dependencies, enter:
dnf upgrade
# dnf upgradeCopy to Clipboard Copied! Toggle word wrap Toggle overflow To update a single package, enter:
dnf upgrade <package_name>
# dnf upgrade <package_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow To update packages only from a specific package group, enter:
dnf group upgrade <group_name>
# dnf group upgrade <group_name>Copy to Clipboard Copied! Toggle word wrap Toggle overflow