The older version gets upgraded to the available newer version In the previous example, if I install VLC, it will install version 4.x, not 3.x. If you have the same package available from more than one source, by default, Ubuntu will install the highest available version. The higher version always gets the priority Similarly, you can download a DEB file with a different version and install it. Adding the VLC daily build PPA will give the (unstable) version 4.x. To get multiple versions of the same package, you’ll have to add multiple sources. Use multiple sources for different versions But as soon as the package is upgraded to the new version, the older version is removed from the cache as well as the repositories. You may see two versions for the same package in the apt cache. For example, you run the apt update (but not upgrade), and a new version is available. You may see more than one version in specific cases, temporarily. Ubuntu doesn’t keep older versions of packages in the repository. You need to know a few things about how APT and repositories work in Ubuntu and Debian-based distributions. Things to know about installing a specific version of a program This tutorial will cover all the important aspects of installing a specific program version using apt or apt-get commands. There are several ifs and buts involved here. Sounds like a simple task, right? But things are not as simple as they look.
0 Comments
Leave a Reply. |