![]() Processing triggers for libc-bin (2.24-11+deb9u4) sudo apt full-upgradeĠ upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Get:1 stretch/updates/main amd64 libssl1.1 amd64 Run 'apt list -upgradable' to see sudo apt upgradeĢ upgraded, 0 newly installed, 0 to remove and 0 not upgraded.Īfter this operation, 0 B of additional disk space will be used. Get:1 stretch/updates InRelease Ģ packages can be upgraded. ![]() This can simply be done by running the following: sudo apt update Update the old releaseīefore going to the new release, although not completely mandatory, I believe it is a good idea to update to the latest version of the current release you are on at the moment. Best is to test this properly beforehand on a clone or test-setup. As mentioned in the introduction, some upgrades come with changes that require manual migration steps. Keep in mind as well that installing a new version of certain packages might not be enough to complete the upgrade. Those are moments where you are properly reminded of Murphy’s law. ![]() It should be logical but you wouldn’t be the first, myself included, that quickly, before production starts, wants to upgrade a system. The easiest way is to take a snapshot, either with a tool like Timeshift or if this is a VM, on your hypervisor. In most chances the system will not break but it isn’t completely unrealistic either. The chance that the package manager, apt, will touch your actual data in /home or /var is rather small but configuration files in /etc or profile settings in /home can be impacted. Backupīefore upgrading to a new release, it’s best to take a proper backup of your system. If this software is critical for your system, best is to read yourself into the impact of upgrading and required (manual) changes. If we take a few examples: PostgreSQL goes from version 9.6 to 11, PHP goes from 7.0 to 7.3 and Nginx from 1.10 to 1.14. For Debian 10, you can find this information over here. In there you can find which are the new versions for a certain release. It’s a good practice to have a look at the release notes and press release. Postgresql/oldstable,oldstable,now 9.6+181+deb9u3 all Preparation Reading ![]() Just to check what exactly gets upgraded, let’s also record some version of software I have installed under Debian 9: apt list apache2Īpache2/oldstable,oldstable,now 2.4.25-3+deb9u9 amd64 apt list postgresql Linux deb 4.9.0-14-amd64 #1 SMP Debian 4.9.246-2 () x86_64 GNU/Linuxįor this post, this will be my starting point and as you could guess, the goal is to end with Debian version 10. There are several ways to do this but I prefer the following method as it works on most Linux distros: cat uname -a In some of these cases those configuration files could be automatically migrated but, in any case, it had to be thoroughly tested.īefore we begin, let’s check on which release we are and on which kernel version. For example, the Apache 2.2 to 2.4 upgrade introduced a complete new format for the configuration files. This is where you can expect most issues. Because these are largely dependent on each other, there is a good chance that currently installed software will need to be upgraded as well. That system comes with a whole set op packages in the repositories though. Upgrading the Linux distribution itself is very painless. This means that, since then, updates for Stretch are no longer maintained by the Debian security team but by a group of volunteers and companies. At that time, the newer version, Buster, was out for a year. Or because you don’t want to get behind too far as migration from a very old version tends to be painful.ĭebian 9, Stretch, went out of “regular” support since July 2020. It could also simply be because the current version went out of support. ![]() Getting newer versions would require you to get 3rd party repositories added to stay current, which is not ideal and could cause dependency issues. For example: You might run into problems with outdated software versions. There can be plenty of reasons to upgrade an existing system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |