Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 47398  / 2 Years ago, sat, august 27, 2022, 7:10:52

I'm trying to install Alacarte and the dependencies are huge, basically all of GNOME. I know that they are unnecessary. Is there an option in Synaptic or an apt-get flag for this?


More From » apt

 Answers
1

There are two kinds of dependencies for alacarte: “depends” and “recommends”.



Alacarte depends on Python and various Python libraries (which in turn pull in some libraries); the “depends” level says that alacarte won't work without these. APT-based tools won't let you install alacarte without those dependencies. You can ignore all dependencies with dpkg --force-depends, however this will confuse APT when alacarte is involved in a dependency calculation later (for example when a newer version of the package appears), hence doing this is not recommended. Furthermore it's unlikely that you'll get any use of the package without these dependencies.



Alacarte depends on gnome-panel (which in turns depends on many other parts of Gnome) at the “recommends” level. This indicates that alacarte is rarely useful without gnome-panel, but can be in some circumstances. Here, alacarte is indeed useful without gnome-panel if you have a different Freedesktop-compliant menu application.



By default, apt-get install installs all dependencies at the “depends” or “recommends” level. Pass the --no-install-recommends option to tell it not to install “recommends”-level dependencies. You can make this the default setting by adding APT::Install-Recommends "false"; to /etc/apt/apt.conf.d/zzz_mpmcfarlane.



With aptitude on the command line, pass -R or --without-recommends to avoid installing “recommends”-level dependencies. In the Aptitude full-screen UI, marking alacarte for installation also selects gnome-panel, but you can unmark it before proceeding with the installation. The APT preference also influences aptitude.



In Synaptic, marking alacarte for installation also selects gnome-panel. However you can go and unmark gnome-panel before applying the changes. There is a preference (in the “General” tab) to “Consider recommended packages as dependencies”.


[#44045] Sunday, August 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
byishted

Total Points: 469
Total Questions: 113
Total Answers: 113

Location: Tajikistan
Member since Sun, Aug 29, 2021
3 Years ago
;