• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How To Use distro-sync Option With dnf To Upgrade OS (CentOS/RHEL 8)

By admin

dnf has a distro-sync option which is used to synchronize installed packages to the latest available versions. It does the necessary upgrades, downgrades or keeps selected installed packages to match the latest version available from any enabled repository. If no package is given, all installed packages are considered.

The distro-sync option of DNF is similar to yum’s update option. The following is an example of the distro-sync option:

# dnf distro-sync
Last metadata expiration check: 0:00:38 ago on Thu 05 Sep 2019 05:44:31 AM UTC.
Dependencies resolved.
========================================================================================================================================================================
 Package                         Arch                             Version                                    Repository                                            Size
========================================================================================================================================================================
Upgrading:
 pango                           x86_64                           1.42.4-5.el8_0                             rhel-8-appstream-rhui-rpms                           297 k
 libgs                           x86_64                           9.25-2.el8_0.3                             rhel-8-appstream-rhui-rpms                           3.1 M

Transaction Summary
========================================================================================================================================================================
Upgrade  2 Packages

Total download size: 3.3 M
Is this ok [y/N]: N
Operation aborted.

This command shows the same behaviour as yum update, and both can be used to upgrade all packages on the system:

# yum update
Last metadata expiration check: 0:01:16 ago on Thu 05 Sep 2019 05:44:31 AM UTC.
Dependencies resolved.
========================================================================================================================================================================
 Package                         Arch                             Version                                    Repository                                            Size
========================================================================================================================================================================
Upgrading:
 pango                           x86_64                           1.42.4-5.el8_0                             rhel-8-appstream-rhui-rpms                           297 k
 libgs                           x86_64                           9.25-2.el8_0.3                             rhel-8-appstream-rhui-rpms                           3.1 M

Transaction Summary
========================================================================================================================================================================
Upgrade  2 Packages

Total download size: 3.3 M
Is this ok [y/N]: N
Operation aborted.

Filed Under: CentOS/RHEL 8, Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL 6 : How to Save iptables Rules
  2. How to Connect Remote Host Using the ssh Command
  3. Understanding Linux SCSI Reservation
  4. “iscsiadm” Discovery TimeOut With Two Or More Network Interfaces in CentOS/RHEL
  5. CentOS / RHEL 7 : How to set default target (default runlevel)
  6. NFSv4 Client Shows “nobody” As Owner And Group For Mount Point (CentOS/RHEL)
  7. How to install an RPM package into a different directory in CentOS/RHEL/Fedora
  8. How to Transfer files securely using SCP Command in Linux
  9. OpenLDAP Server and Client Utilities list
  10. Linux “rm” Command Examples

You May Also Like

Primary Sidebar

Recent Posts

  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • How to Capture More Logs in /var/log/dmesg for CentOS/RHEL
  • Unable to Start RDMA Services on CentOS/RHEL 7
  • How to rename a KVM VM with virsh
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary