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 ? |
If you wnt you can use Swaret (http://www.swaret.org). It will download and install all the required packages for you.
|
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 |
Have a look at this thread
|
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 |
@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 |
Quote:
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. |