Page 1 of 1

[Solved] How can I check which module contains a file?

Posted: 16 Aug 2012, 01:23
by rodyaj
Umplayer from Porteus modules repo runs fine when I have kde loaded. I like to run with noload=kde though, and this causes umplayer to get an error:

Code: Select all

umplayer: error while loading shared libraries: libQtXml.so.4: cannot open shared object file: No such file or directory
.

I ran slackyd -d umplayer but it doesn't notice any dependencies missing. In this instance, I know that the kde module must contain the lib. But for future reference, is there a tool I can use to find out which module contains the missing file?

Thanks for reading.

Re: How can I check which module contains a file?

Posted: 16 Aug 2012, 03:03
by Iapetus
hi rodyaj,

All of the modules are mounted inside /mnt/live/memory/images, so you can sort through files by modules there, e.g.:

Code: Select all

find /mnt/live/memory/images -name libQtXml.so*
if all you want is the module name, you can pipe this to cut:

Code: Select all

root@porteus:~# find /mnt/live/memory/images/ -name libxfce4ui|cut -d "/" -f6
0090-xfce.xzm
0090-xfce.xzm
root@porteus:~# 

Re: How can I check which module contains a file?

Posted: 16 Aug 2012, 13:03
by brokenman
Open Porteus Package Manager (from the system menu) and click on the library icon. Enter the name of the library and click search and it will search for which slackware package contains the given library.

qt-4.7.0_7abde40-i486-3

--------------------

If you want to search which base module contains a package this is a little more complicated.

First search for the installed package that contains the library.

Code: Select all

grep libQtXml.so /var/log/packages/*
Then check which base module contains this package.

Code: Select all

for a in /mnt/sda5/os/porteus-v1.2/porteus/base/*.xzm; do
  echo $a && unsquashfs -l $a|grep qt-4.7.0
done

Re: How can I check which module contains a file?

Posted: 16 Aug 2012, 19:23
by rodyaj
Thanks. This will come in handy.

Re: [Solved] How can I check which module contains a file?

Posted: 16 Aug 2012, 19:59
by brokenman
If you want to search which base module contains a package this is a little more complicated.
Rodyaj's search under /mnt/live/memory/images is more efficient for finding base module.