LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   list installed package files and how to know which package a file belongs (https://www.linuxquestions.org/questions/slackware-14/list-installed-package-files-and-how-to-know-which-package-a-file-belongs-781100/)

bujecas 01-09-2010 02:15 PM

list installed package files and how to know which package a file belongs
 
Hello,

Is there any way of listing the files of a installed package, like Debian does with dpkg -L ?

Is there any way of knowing which package a file belongs, like Debian does with dpkg -S ?

Using Slackware 13.

Thanks.

rg3 01-09-2010 02:24 PM

List files in package:

Code:

less /var/log/packages/PACKAGE_NAME
Know which package a file belongs to, more or less:

Code:

grep FILENAME /var/log/packages/*
Example: grep libvorbis.so /var/log/packages/*


gegechris99 01-09-2010 02:30 PM

Hello,

To list the files of a package, run as root user:

Code:

pkgtool
then select "View" in the menu and finally select the package.

To find the package containing a file, I'm only aware of slackpkg.

Code:

slackpkg search filename
For the slackpkg search to work, you need to use slackpkg (at least use the command "slackpkg update" to initialize/update its local database). For further details on slackpkg, please refer to its manpages.

Woodsman 01-09-2010 03:14 PM

There also are some nice shell scripts that elaborate upon the methods just described:

Useful custom commands for Slackware.


All times are GMT -5. The time now is 12:10 PM.