Score:0

How to install only one of the suggested/recommended packages?

gb flag

For example, Package master depends on dep1 and suggests sugg1, sugg2. when I install master, dep1 gets installed automatically but sugg1, sugg2 is not.

I want to install sugg1 but not sugg2. Also I want sugg1 to be treated as dependency. i.e. 1. If master is uninstalled, sugg1 should also be removed. 2. If a newer version of master no longer suggests sugg1, it should be removed automatically.

What is the correct way to install such non-default dependencies? (not all of them by default. But as and when I choose to).

Score:0
cn flag

You cannot tell apt to modify its logic to treat some 'suggests' as something else.

But you can tell apt to install the sugg1 package (it's already a dependency). Then tell apt to treat the package as automatically-installed, so it's eligible for autoremoval.

Looks something like this:

# Install master, dependencies, and sugg1
sudo apt install master sugg1
sudo apt-mark auto sugg1

# Uninstall master, dependencies, and sugg1
sudo apt remove master
balki avatar
gb flag
Thanks! `apt-mark` is what I need exactly.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.