I'm experimenting a bit with aptitude search terms and finally discovered how to do search on dependencies, which is:
aptitude search '?depends("searchterm")'
The only problem that I've found is... that the "searchterm" uses expansions. If I use aptitude search '?depends("vim")'
it will look for any packages that depends on a package that contains the word vim
in the start, middle or end. Is there a way that I can match the exact package called vim
and no other expansion?
aptitude search '?depends("^vim$")'
returns a smaller list than just searching for vim, but I haven't confirmed its doing exactly what you are asking.?narrow(filter, pattern)
??narrow(?name(vim), ?depends(?name(vim)))