Monday, May 6, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 833  / 1 Year ago, tue, april 18, 2023, 11:08:08

When I select a package for installation using aptitude-curses, sometimes a huge list of extra packages appear selected under "Packages being automatically installed to satisfy dependencies". When I go through this list I see that some packages are there only because the one I was installing in the first place recommends it.



Is there a way that I can set up aptitude so that these packages are not marked for installation, but instead appear in some sort of list like the "Packages which are suggested by other packages" already do?


More From » package-management

 Answers
4

You can do this permanently or on a per aptitude invocation basis.



Permanent Method (config file)




  • Press Alt+F2, and run gksudo gedit /etc/apt/apt.conf (or your favorite editor)

  • Add the following lines to the file:




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



Per-invocation Method (command-line switch)



Simply invoke aptitude with the without-recommends switch, e.g.




  • sudo aptitude --without-recommends for the interactive version

  • or sudo aptitude install --without-recommends <packages> for cli use.



One-time installation of recommended packages when the permanent method is used



If you use the permanent method to disable installation normally, but with to use it once with aptitude, simply invoke it as in the per-invocation method, but with the --with-recommends switch.


[#38351] Thursday, April 20, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
disdry

Total Points: 133
Total Questions: 128
Total Answers: 109

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
;