I want to remove the recommended packages of a package using
my-package is installed, and I want to keep it and its dependencies.
apt-cache depends <my-package> | grep Recommends
returns a variety of packages, none of which I want.
How can I remove these packages? I can write a bash script to do it but I'm hoping there's an
apt way to do it.
I have searched online and haven't found a way to uninstall these recommended packages without uninstalling the package itself and its required dependencies. In other words, I want to keep
my-package and its dependencies, but remove the packages it recommends.
Furthermore I ideally don't want to edit config files; I want to keep the system settings untouched.