Re: Removing all dependencies with aptitude
On Sat, Jun 05, 2010 at 02:13:51 +0100, Vasco Costa wrote: Most of the times 'aptitude remove/purge package' removes ALL the unused dependencies of the package. Sometimes however, even if I issue this command RIGHT after having installed a package it only removes some of the dependencies, leaving a few behind (specially for packages with huge dependency chains). Why does this happen? Is this because some of the installed dependencies may be optional dependencies for packages already installed or is this some aptitude limitation? Your first hypothesis is most likely the correct one; the optional dependency that keeps the package on your system can be a recommends or even a suggests of another package, depending on how you have configured aptitude. Is there a way to remove ALL the unused dependencies in these cases without manually issuing a remove for each of them? Aptitude does remove all unused dependencies automatically; if you do not like that it keeps recommends by default then you have to change the corresponding configuration option (aptitude::Keep-Recommends). -- Regards,| Florian | -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100605075516.ga4...@isar.localhost
Re: Removing all dependencies with aptitude
[ I am putting this back on d-u; please make sure to reply to the list. ] On Sat, Jun 05, 2010 at 16:05:17 +0100, Vasco Costa wrote: On Sat, 2010-06-05 at 09:55 +0200, Florian Kulzer wrote: Your first hypothesis is most likely the correct one; the optional dependency that keeps the package on your system can be a recommends or even a suggests of another package, depending on how you have configured aptitude. I've just proved my first hypothesis wrong. I haven't changed any configuration options, so both aptitude::Keep-Recommends and aptitude::Keep-Suggests are set to their default value which is false. The last time I configured aptitude, aptitude::Keep-Recommends was true by default. I really have no idea why this is happening. As an example let me show what happens with the mplayer package. When I install mplayer the following deps are installed: libfribidi0 liblzo2-2 libmpcdec3 libopenal1 libxvmc1 mplayer-skin-blue However if I immediately run aptitude remove/purge mplayer following the install only these deps are removed: liblzo2-2 libmpcdec3 libopenal1 libxvmc1 mplayer-skin-blue Notice that they are all removed except for libfribidi0. In this particular case it's quite easy to remove it manually, but on packages with over 100 deps it gets annoying. Is there anything I can try in order to understand why libfribidi0 in particular isn't being removed? You can ask aptitude directly: aptitude why libfribidi0 -- Regards, Florian -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100605163056.ga6...@isar.localhost
Re: Removing all dependencies with aptitude
First I'd like to apologize for the fact that by mistake I didn't reply to the list (only to the author) in my previous email. On Sat, Jun 5, 2010 at 5:30 PM, Florian Kulzer florian.kulzer+deb...@icfo.es wrote: You can ask aptitude directly: aptitude why libfribidi0 Thanks, this is quite handy. I should have known about this but I haven't used Debian since over ten years ago (I have been using Gentoo and Archlinux meanwhile). I guess it's time to read the aptitude manual. :) Here's the output of aptitude why libfribidi0 after removing mplayer: i libnewt0.52 Recommends libfribidi0 So, it is indeed due to a recommended dep like it was initially suspected. I guess you were right and somehow Keep-Recommends is true by default. -- Vasco Costa -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktileuk2435etmgak9pv5plcxlzx52dar5u7py...@mail.gmail.com
Re: Removing all dependencies with aptitude
On Sat, Jun 05, 2010 at 20:00:43 +0100, Vasco Costa wrote: On Sat, Jun 5, 2010 at 5:30 PM, Florian Kulzer wrote: You can ask aptitude directly: aptitude why libfribidi0 Thanks, this is quite handy. I should have known about this but I haven't used Debian since over ten years ago (I have been using Gentoo and Archlinux meanwhile). I sometimes have the impression that even many long-time Debian users do not know aptitude's why command, which is a shame. (The complementary why-not is very useful as well.) I guess it's time to read the aptitude manual. :) I would especially recommend to familiarize yourself with the interactive mode of aptitude; this investment will pay off many times over. Note that you can configure aptitude so that it will not install recommended dependencies automatically, but you can still tell it to keep all the auto packages that are on your system as long as there is at least one package that recommends them. This allows you to decide at each upgrade/install operation which of the recommended packages you actually want, and if you want to mark them for future automatic removal or if you like them in their own right. (The same options exist for suggested packages.) -- Regards,| Florian | -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100605203130.ga6...@isar.localhost