Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
119
rated 0 times [  119] [ 0]  / answers: 1 / hits: 160652  / 1 Year ago, thu, january 26, 2023, 9:44:26

I use Ubuntu 12.04 64-bit, I did the following: sudo gedit /etc/apt/apt.conf and added



APT::Install-Recommends "false";
APT::Install-Suggests "false";


But it did not work. When I try to install a package, it still wants to install the suggested and recommended packages. How can I solve this?


More From » apt

 Answers
1

If you do not want to install recomended packages you can run apt-get with the --no-install-recommends flag or aptitude with the --without-recommends/-R flag.




If you want these flags to always be enabled (I do NOT recommend this) put the following lines in your /etc/apt/apt.conf file:


APT::Install-Recommends "false";
APT::Install-Suggests "false";

Remember that these packages are recommended for a reason and it is probably not a good idea to ignore it at all times. You would be better off using the flags in the cases where you know that the recommended packages are wrong.


[#36012] Friday, January 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laiuct

Total Points: 44
Total Questions: 105
Total Answers: 107

Location: Seychelles
Member since Mon, Feb 15, 2021
3 Years ago
;