LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Where to find files and packages (https://www.linuxquestions.org/questions/slackware-14/where-to-find-files-and-packages-140511/)

John Velman 01-30-2004 05:08 PM

Where to find files and packages
 
I'm new to Slackware (after using either RH or Debian for quite a while) and I really
like it. One thing I particularly like is checkinstall, since it has been my custom
to compile a number of things from source.

One thing I thought I had found, but lost, is: How to find out what package a particular
library file is in?

Another thing I'd like to know - Is there a place to find whether a particular small
application is part of some package, or whether there is a package that exists for
an application. Example -- I wanted urlview. Couldn't find it at either the Slackware
main site (or on my CDs) or at linuxpackages.

Are there other good sites to look at?

(In this case, and the case of anacron, I of course got the source from their respective
homes and compiled and installed them using checkinstall).

Thanks,

John Velman

jailbait 01-30-2004 06:48 PM

"One thing I thought I had found, but lost, is: How to find out what package a particular
library file is in?"

You didn't say what package manager you are using. If you are using rpm then use the -f option. For example if you want to know what package supplies the pftp program then type in:
rpm -qf /usr/bin/pftp

The answer I get is ftp-0.17-18.

"Another thing I'd like to know - Is there a place to find whether a particular small
application is part of some package, or whether there is a package that exists for
an application. Example -- I wanted urlview. Couldn't find it at either the Slackware
main site (or on my CDs) or at linuxpackages.

Are there other good sites to look at?"

I have had trouble with this problem myself. The best solution that I have found is to use Google. For example to find out what Fedora package contains the pftp program I would use Google to search for:
Fedora contains pftp

If anybody has a better solution I too would be happy to hear about it.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Joey.Dale 01-30-2004 07:35 PM

You can use rpmfind.net
and do an rpm2tgz

-Joey

Berhanie 01-30-2004 08:00 PM

Let's say you have a file called filename whose path is /usr/bin/filename
and you're interested in finding out which package it came from.
You'd do:
grep usr/bin/filename /var/log/packages/*

Bruce Hill 01-30-2004 08:24 PM

Quote:

Originally posted by Berhanie
Let's say you have a file called filename whose path is /usr/bin/filename
and you're interested in finding out which package it came from.
You'd do:
grep usr/bin/filename /var/log/packages/*

mingdao@paul:Sat Jan 31 10:23:44~$ grep /usr/bin/gpg /var/log/packages/*
mingdao@paul:Sat Jan 31 10:23:55~$

I tried several, and none outputs anything. What did I do wrong?

Berhanie 01-30-2004 08:53 PM

You included the leading /

Bruce Hill 01-30-2004 09:03 PM

Quote:

Originally posted by Berhanie
You included the leading /
Typos do prevent the proper output, don't they. Thanks for the useful command.
Code:

mingdao@paul:Sat Jan 31 11:02:32~$ grep usr/bin/gpg /var/log/packages/*
/var/log/packages/gnupg-1.2.3-i486-1:usr/bin/gpg
/var/log/packages/gnupg-1.2.3-i486-1:usr/bin/gpgv
/var/log/packages/gnupg-1.2.3-i486-1:usr/bin/gpgsplit


Cerbere 01-31-2004 03:18 AM

Searching through /var/log/packages/ works fine IF you already have the package installed on your system. To find any file in any package in slackware, bunzip2 the file MANIFEST.bz2 from the /slackware directory of your install disc, then search it.

I use 'less MANIFEST', then '/file_I_want_to_find', then scroll up to the name of the package.

Enjoy!
--- Cerbere

John Velman 01-31-2004 02:09 PM

Thanks, Cerbere. This is just what I needed (to find files in packages on the CD).

Just used it to find that xpdf depends on the lesstif package via libXm.so.2.

Also thanks to the otheres who responded. Except, I just left RH9, partly to get away from rpm hell :-). It is useful to know how to get tgz from rpm, since occaisionally there is an application only available in rpm form. However, I guess I'd better fix my profile to
reflect slackware as my dist.


Best,

John Velman:)


All times are GMT -5. The time now is 10:21 AM.