On Du, 13 apr 14, 17:24:07, Patrick Bartek wrote: > On Sun, 13 Apr 2014, Sven Joachim wrote: > > > > You could use aptitude to mark the dependencies as auto-installed > > (untested): > > > > # aptitude markauto "~Dlibreoffice" > > > > Then you can autoremove them as you wish.
Shouldn't that be ~R? Besides, 'libreoffice' is not specific enough. > Not all that knowledgeable of aptitude. Wary of using an untested > procedure of a utility I'm unfamiliar with. That's surely asking for > trouble. You can use the search function to return a list of packages and then use your favorite tool to act on it. The following will return a list of package names that are dependencies of the package 'libreoffice'. aptitude --display-format %p search '?reverse-depends(?exact-name(libreoffice))' short version aptitude -F %p search '~R^libreoffice$' ('?exact-name()' doesn't have an equivalent short form, so I used ^$ to exclude packages containing 'libreoffice' in their name) Please note that IMNSHO aptitude's visual/interactive/whatever mode is very well suited for this. For example you can easily go to the package 'libreoffice' and mark all its dependencies as automatically installed and check to see what effect this will have on your system. If you don't like it you can cancel individual, or all pending actions and start from scratch and only apply the changes you are satisfied with. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic http://nuvreauspam.ro/gpg-transition.txt
signature.asc
Description: Digital signature