Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-09-2010, 02:15 PM   #1
Registered: Oct 2004
Location: Portugal
Distribution: Debian, Slackware
Posts: 78

Rep: Reputation: 20
list installed package files and how to know which package a file belongs


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.

Old 01-09-2010, 02:24 PM   #2
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
List files in package:

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

grep FILENAME /var/log/packages/*
Example: grep /var/log/packages/*

Last edited by rg3; 01-09-2010 at 02:34 PM. Reason: Edit: misunderstood one question
Old 01-09-2010, 02:30 PM   #3
Senior Member
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,143
Blog Entries: 5

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379

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

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

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

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.
1 members found this post helpful.
Old 01-09-2010, 03:14 PM   #4
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

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

Useful custom commands for Slackware.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I know if a package/list of package is installed redhatwannabe Linux - Newbie 5 05-04-2009 12:57 AM
Tru64 - how can you determine the package where a file or binary belongs to?. Crazy_lenny Other *NIX 2 01-02-2009 10:38 AM
Copying installed package list to other systems tweak13 SUSE / openSUSE 2 02-26-2007 06:29 PM
Slack Installed Package List rhb327 Slackware 3 08-29-2006 06:27 AM
List the files installed by a RPM package s_deepak_123 Linux - General 6 02-20-2006 12:14 PM > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration