LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-30-2004, 06:08 PM   #1
John Velman
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.2
Posts: 33

Rep: Reputation: 15
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
 
Old 01-30-2004, 07:48 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 11
Posts: 8,153

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
"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
 
Old 01-30-2004, 08:35 PM   #3
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
You can use rpmfind.net
and do an rpm2tgz

-Joey
 
Old 01-30-2004, 09:00 PM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
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/*
 
Old 01-30-2004, 09:24 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,939

Rep: Reputation: 129Reputation: 129
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?
 
Old 01-30-2004, 09:53 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You included the leading /
 
Old 01-30-2004, 10:03 PM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,939

Rep: Reputation: 129Reputation: 129
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
 
Old 01-31-2004, 04:18 AM   #8
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
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
 
Old 01-31-2004, 03:09 PM   #9
John Velman
Member
 
Registered: Jan 2004
Location: California
Distribution: Slackware 10.2
Posts: 33

Original Poster
Rep: Reputation: 15
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
 
  


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
linux find to find files with multiple patterns subu_s Programming 6 12-15-2010 01:15 AM
can't find packages! [IT04]Nemo Linux - Newbie 3 03-02-2005 04:29 PM
Cant find packages dangerousdave Linux - Newbie 3 02-14-2005 08:06 PM
How do you find certain packages in apt. Royle Debian 4 01-09-2005 12:22 PM
Can't find install packages Linok Mandriva 5 08-01-2004 10:06 PM

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

All times are GMT -5. The time now is 01:59 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