- Get PID of process.
ps aux | grep 'process name what you wanna check'
2. Check loaded modules by process using PID.
lsof -p 'PID'
3. Search modules by modules full path.
dpkg -S 'Full path of module'
4. You can check what modules are included in package.
dpkg -L 'pacage name'
References: https://isleofhoso.com/linux-lsof/
# Reference article is written in Japanese and it mentioned rpm package management system.