LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-09-2004, 01:57 AM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
Possible to search by content of package not downloaded yet?


Edit : Assume /usr/bin/xyz or the package containing <xyz> is not installed yet.

Edit: I want to to know which package installs /usr/bin/xyz. However, doing a apt-cache search <xyz> sometimes will not turn up the correct package name, since it only search the header and description, but not the content of the packages. Is there a command I can use to search by package content of packages that are not even downloaded yet?

As an example, assume cfdisk is not yet installed on the system.

I want to know which package installs cfdisk. However, doing a apt-cache search cfdisk will not turn up util-linux (which is the correct package name containing cfdisk), since it only searches the header and description, but not the content of the packages. Is there a command I can use to search by package content of packages that are not even downloaded yet?

Also, is there a command like dpkg -L <packagename>, but will list the content and the installation directories of packages not downloaded yet?

Thanks !

Last edited by davidas; 04-09-2004 at 02:59 AM.
 
Old 04-09-2004, 02:07 AM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
dpkg -S cfdisk will return
util-linux: /sbin/cfdisk
util-linux: /usr/share/man/man8/cfdisk.8.gz
util-linux: /usr/share/doc/util-linux/README.cfdisk.gz

To check other info on apt etc try Apt HOWTO
 
Old 04-09-2004, 02:52 AM   #3
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
Your result is shown because cfdisk / util-linux package is already installed on your system. dpkg -S cannot be used on packages not installed yet, I think.

Please correct me if I'm wrong.

Thanks !

Quote:
Originally posted by leonscape
dpkg -S cfdisk will return
util-linux: /sbin/cfdisk
util-linux: /usr/share/man/man8/cfdisk.8.gz
util-linux: /usr/share/doc/util-linux/README.cfdisk.gz

To check other info on apt etc try Apt HOWTO
 
Old 04-09-2004, 02:54 AM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Sorry, didn't read that bit, but theres this

Quote:
If you want to install a package, and you can't find out what it is called by searching with apt-cache, but know the filename of the program itself, or some other filename that belongs to the package, then you can use apt-file to find the package name. This is done like this:

$ apt-file search filename

Last edited by leonscape; 04-09-2004 at 02:55 AM.
 
Old 04-09-2004, 03:28 AM   #5
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
Thank you... exactly what I'm looking for

Quote:
Originally posted by leonscape
Sorry, didn't read that bit, but theres this
 
  


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
Eliminate dependency on gentoo from package installed from downloaded source aeruzcar Linux - Distributions 2 10-02-2005 12:50 PM
package search across distributions Samsara Linux - Distributions 4 08-13-2005 11:10 PM
linking downloaded c library to global search path syoh Programming 1 10-17-2003 01:33 AM
Downloaded some sort of spyware - can't get to search engines.. help? BrianK General 5 09-27-2003 08:49 AM
RH and package search mrsolo Linux - Software 3 02-25-2003 11:40 PM


All times are GMT -5. The time now is 07:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration