Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 10226  / 2 Years ago, tue, october 4, 2022, 9:49:53

Let's say I have a package A which has Depends: B (>= 1.0.0) in its control file.



The B was installed as an A dependency some time ago with 1.0.0 version.



Now B was updated in the repository to the 1.0.42 version and I'd like to upgrade it.



What I don't like to do: apt-get install B since it will mark B as "manually installed" (not sure how to name it correctly) package and it won't be removed with autoremove if I decide to stop using A ever.



So is there an analogue of apt-get upgrade that only upgrades a particular package and its dependencies (probably recursive, it doesn't matter in my case since B doesn't depend on anything else) only?



PS: I'm asking about currently available LTS versions. So 10.04 and 12.04


More From » apt

 Answers
5

Well, if there won't be another answer - here is one way of doing that:



Just install it with apt-get install B explicitly, then mark it as auto installed using apt-mark markauto B


[#30279] Thursday, October 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gliroopy

Total Points: 290
Total Questions: 115
Total Answers: 114

Location: Egypt
Member since Tue, May 3, 2022
2 Years ago
;