SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My guess is that many of us have invented similar wheels for use in house. The reason that few of these was released might be
There could be too many false positives and false negatives, e.g., when a program should be started by a script that modifies LD_LIBRARY_PATH, and, a program loads a library programmatically through dlopen(3), or simply depends on another program's output data, e.g., tar will not be able to expand a compressed archive without appropriate decompression program installed.
A package with broken dependency can still be useful, e.g., tar without lzip installed and KDE without NetworkManager (libnm.so).
As I commented on Emmitt’s Reddit post, I rather like this script. Sure there’s many like it and some offer differing results, as with all of them, it’s up to the user to parse that info and find the data they need. As with all others, false-positives exist if you don’t have all the distro installed, or with things like Firefox, speech-dispatcher, etc.
As with any script though, you are free to change what it writes to suit your needs, I find it a odd complaint about what it writes… change it for you or use another option. Many exist.
I find it a odd complaint about what it writes… change it for you or use another option.
I am sorry if my comment offended you. I did not try to run the script, and I don't know what it outputs. I just pointed out a security vulnerability in its usage of a temporary file.
Hey yeah i saw that using '/tmp/<file>' become big issue. I'm aware of that, it just that file is used randomly when i'm writing that script. I see no problem because that script is for my own use, until yesterday i decide to share it for other users in case that script can be a good use. But i forgot to fix and polish before share it.
I hope if there is more issue, someone could point me so i can fix it and the script can be a good use to other users who wanna use it.
The script is fixed, replaced '/tmp/list' to '$(mktemp)'. I also added 'trap' to remove that temporary file if 'Ctrl + C' is invoked.
Hey yeah i saw that using '/tmp/<file>' become big issue. I'm aware of that, it just that file is used randomly when i'm writing that script. I see no problem because that script is for my own use, until yesterday i decide to share it for other users in case that script can be a good use. But i forgot to fix and polish before share it.
I hope if there is more issue, someone could point me so i can fix it and the script can be a good use to other users who wanna use it.
The script is fixed, replaced '/tmp/list' to '$(mktemp)'. I also added 'trap' to remove that temporary file if 'Ctrl + C' is invoked.
Any chance of making revdep also accept a single package as an input? So that it can also check only this one package, without going through all? Kinda like it works on CRUX.
How about packages installed in non-standard locations, e.g. /opt? Sure, on Slackware we do not have /etc/revdep.d/, but still...
I really like your tool.
How about packages installed in non-standard locations, e.g. /opt? Sure, on Slackware we do not have /etc/revdep.d/, but still...
Just add your extra desired dirs in the "SEARCH_DIRS" array, could make it as recursive as you'd like (likely at the expense of time) to add many other one-off directories to search.
No offense taken, it just seemed trivial to change, and all the existing scripts that you linked write a file to /tmp as well, so it is a valid point. I always make sure the output of the others ends up in /root, as my /tmp is wiped on poweroff, but I'm sure that may be as unsafe a practice as well!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.