Command to find out which package contains which file ?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
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..........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.