I have a droplet that is still running Fedora 28. Can I update to a current version on that droplet or do I need to make a new droplet and shut down the old one?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi,
Upgrading OS usually is not a hassle-free process. On the other hand, the apps and all software related to them, installed and configured on your current droplet may be difficult to move to the new VM. So, you need to asses what way is better: upgrading or migrating. To get a clue what is better, you could do an upgrade test without getting any risk, just spending little money ;) Here are the steps on how to do this test:

1. Make a snapshot of your droplet. You will need to spend some money on it but it will not be expensive unless your droplet’s size is really huge. You can delete the snapshot after an upgrade test.

2. Create a new droplet using your just made snapshot. The test will be performed on this newly created droplet (let’s call it test-droplet). Creating a droplet will charge you respectively to its configuration and the time of using it. You can destroy it immediately after the test.

3. ssh test-droplet and run following commands (due to official Fedora system upgrade doc).

Upgrade all packages to the most current versions.

sudo dnf upgrade --refresh

Install dnf plugin for upgrading OS

dnf install dnf-plugin-system-upgrade

Below command will download all needed packages for upgrading system to the version specified in --releasever parameter. It will not install them. It will install missing gpg keys, and check the transactions. On this stage you will find out how many potential problems you could expect upgrading the system.

dnf system-upgrade download --refresh --releasever=33

If you are satisfied with the result of previous command, or you fixed all reported problems, or you just want to finish this test ;), then run this command for system upgrade:

dnf system-upgrade reboot

Your ssh connection will be closed. You can follow an upgrade process with the test-droplet console launched in your DO control panel.

4. Now you probably know what is better in your case: upgrading or migrating ;) Do not forget to destroy test-droplet and delete the snapshot to not be charged too much :)