How to remove recommended and suggested dependencies of uninstalled packages?
作者:互联网
If you want to remove recommended packages from your system, even if there are still some installed packages recommending (or suggesting) them, put the following in the file /etc/apt/apt.conf.d/99_norecommends (create it):
APT::Install-Recommends "false";
APT::AutoRemove::RecommendsImportant "false";
APT::AutoRemove::SuggestsImportant "false";
The documentation for these options is here.
Then, the next apt run should remove them all. If it doesn't, launch aptitude, and type g and g again.
This configuration also disables the automatic installation of recommended packages when using apt-get. For aptitude it can be done from the console GUI, menu Options > Preferences > "Install recommended packages automatically" (uncheck it).
标签:suggested,false,apt,How,recommended,remove,packages,APT 来源: https://www.cnblogs.com/xiang-kf/p/14494086.html