I'm running ldd on a list of paths I find to find the shared libs.
There are no shared libs in /proc. If you find any in /dev, chances are that you were hacked.
Is there a way in perl to check if path is dynamic
You could use the linux file(1) utility to check the type and look for shared object and dynamically linked in its output. I'm not aware of a perl module which provides that information.
You didn't answer the question: for what purpose? If you just want the dynamic libraries your system knows about, run ldconfig -p and parse the output. Note that most of the files it reports are symbolic links, which you might have to resolve, depending on purpose.
In reply to Re^3: Capture::Tiny getting stuck on ldd /proc/self/fd/1
by shmem
in thread Capture::Tiny getting stuck on ldd /proc/self/fd/1
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |