Is there a method/command to check for the dependencies of a bash script?
In other words, a response to this question :
Which libraries should a user install to run the script?
I can do this manually by reading the script and check what other libraries/commands it calls but this not evident for long scripts.
Best Answer
The incredibly arcane autoconf system has been used to
If that is not sufficiently scary, wait until you try to write your first autoconf script. The authors of autoconf are not shy about its difficulty:
On the other hand, you will come out of the process knowing more about the fiddly bits of various systems than you'd ever imagined existed.
These days, personally, I would assume a much more standard Debian-ish distribution was my target and not make myself write another autoconf script. I am lucky to have the luxury to choose that; you may not have such latitude.