Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 680  / 3 Years ago, tue, september 7, 2021, 9:23:17

When you install a package manually via a .deb file it doesn't get updated by apt (see also the How does update work with programs installed from .deb file question), but what happens when you install a package that isn't available from the repositories for the current Ubuntu version, but gets included into a later Ubuntu version. When you upgrade to this new version that includes the package by default, will the system:



  • Realize that the package is already installed and update it in the proper way.

  • Realize that the package is already installed, but hold it on the manually installed version.

  • Not realize that it is installed and install it again, causing the same package to be installed twice.

  • Crash and burn in some other way?


If any of the later options is the correct answer, how do I prevent it?


More From » apt

 Answers
0

The package manager doesn't care whether a package has been installed by dpkg or apt. If it finds a newer version of a package in the repositories that newer version gets installed.



In your case that means your package gets updated if the package in the new Ubuntu version has a higher version number.



See "How to prevent updating of a specific package?" if you don't want updates for your package.


[#21655] Wednesday, September 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
onomicsiberated

Total Points: 217
Total Questions: 98
Total Answers: 107

Location: Luxembourg
Member since Sun, May 28, 2023
12 Months ago
;