[Slackbuilds-users] Very simple way of finding dependency

Ythogtha yth at ythogtha.org
Wed Sep 13 11:56:56 UTC 2017

If you have a git clone of the SBo repository, you could go there and use this
kind of command line :

-> Get all SBo packages requiredby a specified package, here is wxGTK3 :
grep -E "REQUIRE.*wxGTK3" */*/*.info | cut -d. -f1 | rev | cut -d / -f1 | rev

-> Get all the ones installed on your system :
for pkg in $(grep -E "REQUIRE.*wxGTK3" */*/*.info | cut -d. -f1 | rev | \
cut -d / -f1 | rev); \
do ls /var/log/packages/$pkg-*SBo; done 2>/dev/null


-> Get only the names by adding at the end of the previous one :
 | rev | cut -d- -f4 | cut -d/ -f1 | rev
It'll show :

Put that in a script, and there you are :)


> I know SBo and Slackware doesn't have a system in place to track 
> dependencies - and most of the time that suits me just fine. However, on 
> occasion, I stumble over a piece of SBo software installed on my machine 
> - such as a library, and I would like to know why is it there - which 
> package needs it. I was thinking that, if when using the search field on 
> SBo website, it would also search through the .info and README files of 
> packages, I could easily get a list of packages which depend on or use 
> the library - and spot if one of them is something that I use or have 
> installed. It would be crude, but I think it would work.
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/

Arnaud <yth at ythogtha.org>

More information about the SlackBuilds-users mailing list