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

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
rodyaj
White ninja
White ninja
Posts: 16
Joined: 06 Jul 2012, 23:56
Location: Liverpool

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

Post#1 by rodyaj » 16 Aug 2012, 01:23

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.
Last edited by rodyaj on 16 Aug 2012, 19:24, edited 1 time in total.

User avatar
Iapetus
White ninja
White ninja
Posts: 18
Joined: 13 Aug 2012, 16:46
Location: USA

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

Post#2 by Iapetus » 16 Aug 2012, 03:03

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:~# 

User avatar
brokenman
Site Admin
Site Admin
Posts: 5542
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#3 by brokenman » 16 Aug 2012, 13:03

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

rodyaj
White ninja
White ninja
Posts: 16
Joined: 06 Jul 2012, 23:56
Location: Liverpool

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

Post#4 by rodyaj » 16 Aug 2012, 19:23

Thanks. This will come in handy.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5542
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#5 by brokenman » 16 Aug 2012, 19:59

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply