Is the mentioned issue in the article still true today?
edit:
even simpler,
for i in $(objdump -p /path/to/bin | grep NEEDED | awk '{print $2}'); do ldconfig -p | grep $i; done
(… it also recurses down on the dependencies, presumably you can extend your shell script to do that too but at some point why not just use the existing tools?)
[1]: https://manpages.debian.org/bookworm/manpages/ldd.1.en.html#...