Upgrade Fedora Instance to latest release

1. Backup Your System and Update dnf utility

Before doing anything, it is recommended to take a backup of system, which can be used for restoring if anything goes wrong. Then after that update `dnf` utility and ensure that you've latest packages for existing version.
sudo dnf upgrade 

In case you don't have dnf installed execute:

#yum install dnf

2. Install dnf upgrade plugin

Next step is to install dnf upgrade plugin, a plugin used for using system upgrade. This can be done using following command.
sudo dnf install dnf-plugin-system-upgrade

3. Download Update Packages using dnf

When dnf plugin installation is complete, download update packages required for system upgrade using following command.
sudo dnf system-upgrade download --releasever=23 --best
This step will take some time as it involves downloading all packages required for system upgrade.

4. Reboot System and Upgrade

Now, reboot your system to start upgrade activity. This can be done using following command.
sudo dnf system-upgrade reboot
When system is rebooted, it will start upgrade process automatically. This might take some time.After upgrade, you'll be booted to upgraded system.

5. Cleanup System

Once you're done with upgrade process, you'll have to cleanup your system to remove unused packages and unnecessary older packages. This can be done by executing following commands.
sudo rpm --rebuilddb
sudo dnf distro-sync --setopt=deltarpm=0

sudo dnf install rpmconf
sudo rpmconf -a

# Only if you've google chrome
sudo dnf remove google-chrome-\* && sudo dnf install google-chrome-[beta,stable,unstable]

That's All. Now we're done with upgrade process. Enjoy!!.

Comments

  1. Fedup --network nn worked fine for me. Just went from 21 to 23 no hay problema senor :)

    ReplyDelete

Post a Comment

Popular posts from this blog

How to clean all the foreman task and locked task

CentOS 7 Server Hardening Guide

How to restrict users to send only mail to the local domain in Zimbra