LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-09-2010, 02:15 PM   #1
bujecas
Member
 
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


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.
 
Old 01-09-2010, 02:24 PM   #2
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
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/*

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

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
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.
 
1 members found this post helpful.
Old 01-09-2010, 03:14 PM   #4
Woodsman
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:50 AM.

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