Update All Installed Packages

This section provides a tutorial example on how to update all installed packages on Linux systems using the 'dnf update' command.

If you install a Linux system from a distribution ISO image, some system and software packages included in the image might be outdated. You can follow this tutorial to check and update all packages currently installed on the system.

Run 'dnf update -y' command to update all installed packages without prompting confirmations.

herong$ sudo dnf update -y

CentOS-8 - AppStream                   2.2 MB/s | 8.4 MB     00:03
CentOS-8 - Base                        938 kB/s | 4.6 MB     00:04
CentOS-8 - Extras                      4.8 kB/s |  10 kB     00:02
Dependencies resolved.

Package                            Architecture  Version
 centos-linux-release                  noarch    8.5-1.2111.el8
  Replace  centos-release.x86_64 8.2-2.2004.0.1.el8
  Replace  centos-repos.x86_64 8.2-2.2004.0.1.el8
 kernel                                x86_64    4.18.0-348.7.1.el8_5
 kernel-core                           x86_64    4.18.0-348.7.1.el8_5
 kernel-devel                          x86_64    4.18.0-348.7.1.el8_5
 kernel-modules                        x86_64    4.18.0-348.7.1.el8_5
 ModemManager                          x86_64    1.10.8-4.el8
 ModemManager-glib                     x86_64    1.10.8-4.el8
 NetworkManager                        x86_64    1:1.32.10-4.el8
 NetworkManager-adsl                   x86_64    1:1.32.10-4.el8

Installing dependencies:
 centos-linux-repos                    noarch    8-3.el8
 crda                                  noarch    3.18_2020.04.29-1.el8
 crypto-policies-scripts               noarch    20210617-1.gitc776d3e.el8
 elfutils-devel                        x86_64    0.185-1.el8
 elfutils-libelf-devel                 x86_64    0.185-1.el8
 freerdp-libs                          x86_64    2:2.2.0-7.el8_5

Transaction Summary
Install   45 Packages
Upgrade  835 Packages
Total download size: 1.0 G

Downloading Packages:
(1/880): fstrm-0.6.1-2.el8.x86_64.rpm
(2/880): jq-1.5-12.el8.x86_64.rpm
(3/880): freerdp-libs-2.2.0-7.el8_5.x86_64.rpm
(4/880): libvirt-daemon-driver-storage-iscsi-direct-6.0.0-37.module_el8...
(5/880): libslirp-4.4.0-1.module_el8.5.0+890+6b136101.x86_64.rpm
(878/880): yum-4.7.0-4.el8.noarch.rpm
(879/880): zlib-1.2.11-17.el8.x86_64.rpm
(880/880): xfsprogs-5.0.0-9.el8.x86_64.rpm

Warning: /var/cache/dnf/AppStream-d7987f026ef99c82/packages
  Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY

CentOS-8 - AppStream
Importing GPG key 0x8483C65D:
 Userid: "CentOS (CentOS Official Signing Key) <security@centos.org>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From: /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction

  Running scriptlet: filesystem-3.8-6.el8.x86_64
  Running scriptlet: copy-jdk-configs-4.0-2.el8.noarch
  Running scriptlet: kmod-kvdo-
  Running scriptlet: java-1.8.0-openjdk-headless-1:
  Preparing        :
  Running scriptlet: libgcc-8.5.0-4.el8_5.x86_64
  Upgrading        : libgcc-8.5.0-4.el8_5.x86_64
  Running scriptlet: libgcc-8.5.0-4.el8_5.x86_64
  Upgrading        : google-noto-fonts-common-20161022-7.el8.1.noarch
  Upgrading        : hwdata-0.314-8.10.el8.noarch
  Running scriptlet: systemd-udev-239-51.el8_5.2.x86_64
  Running scriptlet: fontconfig-2.13.1-4.el8.x86_64
  Running scriptlet: glib2-2.56.4-156.el8.x86_64
  Running scriptlet: vim-common-2:8.0.1763-16.el8.x86_64
  Running scriptlet: gtk3-3.22.30-8.el8.x86_64

  Preparing        : cups-ipptool-1:2.2.6-40.el8.x86_64
  Preparing        : freerdp-libs-2:2.2.0-7.el8_5.x86_64
  Preparing        : fstrm-0.6.1-2.el8.x86_64
  Preparing        : jq-1.5-12.el8.x86_64
  Preparing        : libslirp-4.4.0-1.module_el8.5.0+890+6b136101.x86_64




As you can see, I have updated my entire system, upgraded 835 packages including the kernel, and installed 45 depending packages.

Table of Contents

 About This Book

 Introduction to Linux Systems

 Cockpit - Web Portal for Administrator

 Process Management

 Files and Directories

 Users and Groups

 File Systems

 Block Devices and Partitions

 LVM (Logical Volume Manager)

Installing CentOS

 Create CentOS Bootable USB

 Install CentOS from Bootable USB

 Install CentOS by Deleting Existing Partition

 Reset Timezone on Linux Systems

 Reset Host Name on Linux Systems

Update All Installed Packages

 SELinux - Security-Enhanced Linux

 Network Connection on CentOS

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

 Software Package Manager on CentOS - DNF and YUM

 vsftpd - Very Secure FTP Daemon

 LDAP (Lightweight Directory Access Protocol)

 Administrative Tasks


 Full Version in PDF/EPUB