2

This question already has an answer here:

Is it possible in apt/apt-get to install a package and only some of its recommendations?

For example: I want to install kde-plasma-desktop which recommends sddm, but I don't want to install sddm. What I do want is to install the rest of the recommended packages.

Is there any way of doing this with apt?

marked as duplicate by muru, David Foerster, karel, Community Jul 22 '18 at 9:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

You could try appending a dash to the end of the package you don't want installed, as in apt-get install kde-plasma-desktop sddm-. From man apt-get:

If a hyphen is appended to the package name (with no intervening space), the identified package will be removed if it is installed. Similarly a plus sign can be used to designate a package to install. These latter features may be used to override decisions made by apt-get's conflict resolution system.

  • Well that works. I guess I missed that part of the man page while I was reading it. Thanks! – Jorge Heleno Jul 22 '18 at 3:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.