Sometimes it's important to keep current versions of already installed packages when upgrading Ubuntu release, let's say, from
I don't emphasize if it's
desktop assuming this procedure should be same.
Standard release upgrade steps are:
- sudo apt-get update
- sudo do-release-upgrade
But this will upgrade packages as well. Is there a way to keep versions of already installed packages?
I will perform release upgrades remotely, so I will a need command line solution. It's possible to check versions using
apt-cache policy(and maybe with
aptitude, haven't tried yet).
I won't have any packages in remote computer's repository. I will just need to specify what versions I need and it will download that required packages.
I feel like I will need to write a custom script to solve this issue, but it doesn't seem the best way - packages will be upgrading along with a release upgrade and then I will downgrade them. It'd be nice if I were able to install/keep required version during a release upgrade process.