How to upgrade a particular package dependencies only?

Posted by zerkms on Ask Ubuntu See other posts from Ask Ubuntu or by zerkms
Published on 2013-07-18T22:25:58Z Indexed on 2013/11/07 22:22 UTC
Read the original article Hit count: 301

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?

© Ask Ubuntu or respective owner

Related posts about apt

Related posts about packages