LinuxQuestions.org
Visit Jeremy's Blog.
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 07-08-2004, 04:30 AM   #1
javeree
Member
 
Registered: Jun 2004
Location: Belgium
Posts: 49

Rep: Reputation: 15
Command to find out which package contains which file ?


I've installed slackware on a PC with minimal HD, so I installed only the bare minimum to get me started and add as I need it. I have now installed mozilla, but when I tried to start it up, it complains that specific library files are missing.
What I do now is go on the internet to find out which slackware package contains the needed file and then install that package.
However, I think there must be a way to kind of query all the packages on the distribution CD and ask which one contains that file. However, I don't know how. Can anyone anlighten me ?

As an aside I wonder if there is a way to automatically determine all the required other packages when a program is installed. I think it's rather odd to have to first run it and look at the error messages to determine this (that's what I do now). That may be OK for something like mozilla, but I wouldn't try to run some mission critical software on that premise. So my guess is there must be a better way, but which ?
 
Old 07-08-2004, 04:34 AM   #2
nalg0rath
Member
 
Registered: Feb 2004
Location: Stockholm, Sweden.
Distribution: Gentoo Linux
Posts: 30

Rep: Reputation: 15
If you wnt you can use Swaret (http://www.swaret.org). It will download and install all the required packages for you.
 
Old 07-08-2004, 06:54 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
If you don't want to use swaret, there is a little tip :
first download the full packages list
wget http://pfs.gantep.edu.tr/linux/slack...0/PACKAGES.TXT

second, say for resolve a "libhandle not found" dependancy
grep -i libhandle PACKAGES.TXT

So you should see the package name which provides libhandle
 
Old 07-08-2004, 07:09 AM   #4
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Have a look at this thread
 
Old 07-08-2004, 10:34 PM   #5
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
PACKAGES.TXT only lists all the packages and a description of each.

To see a complete list of every file in every package, look in MANIFEST.gz. It's in the /slackware/ directory of your install disc.

Just gunzip that file, then run 'less MANIFEST', then search it for the filename by typing '/filename'. Finally, scroll back up to the name of the package. There may be easier ways to do it, but this one never fails.

Enjoy!
--- Cerbere
 
Old 07-10-2004, 04:09 PM   #6
javeree
Member
 
Registered: Jun 2004
Location: Belgium
Posts: 49

Original Poster
Rep: Reputation: 15
@mdg, @Cerbere

Great this is just the answer I needed. In addition to the answer which file also those great scripts to make it easy !

thanks
 
Old 07-10-2004, 06:35 PM   #7
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 34
Quote:
Originally posted by Cerbere
...To see a complete list of every file in every package, look in MANIFEST.gz. It's in the /slackware/ directory of your install disc.

Just gunzip that file, then run 'less MANIFEST'...
TIP: When looking at the MANIFEST.gz file, you can 'zcat' the flie and pipe it through the 'less' command, like so:

zcat /path;/to/MANIFEST.gz | less

The 'zcat' command works just like the 'cat' command, only on gzipped files (For bzipped files, use the 'bzcat' command)..........It merely decompresses the file to stdout (to the screen) without actually having to first umcompress the file and then run a separate command to view the uncompressed file..........
 
  


Reply


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 get the proper path to a file through find command napster Linux - General 4 11-07-2005 04:35 AM
Any aptitude command to find out what packages belong to a virtual package? Akhran Debian 9 11-05-2005 09:40 PM
Command to find file with text chamanrana Linux - Software 10 12-02-2004 10:47 AM
Command to find total file size satimis Linux - Newbie 1 01-22-2004 11:19 AM
How do I find out what package a given command comes from? WeNdeL Linux - Newbie 2 05-19-2003 09:11 AM

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

All times are GMT -5. The time now is 08:49 PM.

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