Thursday, January 6, 2022

[SOLVED] ubuntu remove package actually installs other dependencies

Issue

On ubuntu when I use apt remove to delete a package, it will actually also install/update other dependency packages.

Of course, that is not desired, so I'm wondering how can I remove the package and ignore any other dependencies from being installed?

I don't have aptitude, so all I was looking is around apt/apt-get but couldn't find any flags. These might be dependencies from removal, but let's say to just completely ignore those and just remove what I want.


Solution

You could try dpkg as "it cannot automatically download and install packages or their dependencies". Also take a look at this answer which could be helpful for what you are looking for.



Answered By - UdonN00dle