LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Command to find out which package contains which file ? (https://www.linuxquestions.org/questions/slackware-14/command-to-find-out-which-package-contains-which-file-202508/)

javeree 07-08-2004 04:30 AM

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 ?

nalg0rath 07-08-2004 04:34 AM

If you wnt you can use Swaret (http://www.swaret.org). It will download and install all the required packages for you.

keefaz 07-08-2004 06:54 AM

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

mdg 07-08-2004 07:09 AM

Have a look at this thread

Cerbere 07-08-2004 10:34 PM

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

javeree 07-10-2004 04:09 PM

@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

thegeekster 07-10-2004 06:35 PM

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.......... :)


All times are GMT -5. The time now is 09:00 AM.