Does apt upgrade to major version releases of packages?

0
2
Asked By CoolCactus42 On

If I have linux-app version 2.5.6 installed and version 3.0.0 is released, will running `apt upgrade` automatically update to that new major version without any extra commands? I'm curious if the default setting is to only upgrade within the same major version. Also, if it does upgrade to 3.0.0, how can I prevent that from happening until I decide to install the newer version?

3 Answers

Answered By TechyTurtle99 On

Apt generally updates to the latest package versions in your configured repositories. So major version shifts can happen, but it’s tied to your distribution's update policy. If you want to stop certain apps from auto-upgrading, consider using the command to hold the package. This will help prevent it from updating unless you manually lift the hold.

Answered By CuriousKoala88 On

The decision on whether apt upgrades to a new major version usually depends on your distribution's maintainers. In stable environments, like Ubuntu LTS, major version upgrades are rare, and you typically see these changes only when moving to a new distribution release. So, for instance, even if linux-app v 3.0.0 comes out, you might not see it available on Ubuntu 24.04 LTS until you upgrade to a newer version like 25.10.

Answered By SafetyNet Nerd On

If you're wary about major updates during distribution upgrades, using `apt-mark hold _packagename_` is a solid choice. Just be mindful that during a full distribution upgrade, this might complicate things if you're holding onto a package.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.