LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-02-2005, 07:57 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
Any aptitude command to find out what packages provide for a virtual package?


Eg. I did a 'aptitude search openldap'
one of the results show
v sourceforge-ldap-openldap, which is a virtual package.

How do I find out what are the packages providing the source-ldap-openldap virual package, preferably via aptitude?

Thanks !

Last edited by Akhran; 11-05-2005 at 12:28 PM.
 
Old 11-04-2005, 06:15 AM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
How about
$ apt-cache showpkg gforge-ldap-openldap
 
Old 11-04-2005, 11:11 PM   #3
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Original Poster
Rep: Reputation: 30
It doesn't seem to show what are the packages that can provide the virtual package gforge-ldap-openldap.

I'm actually trying to install djbdns, but it requires daemontools as a prerequisite (djbdns can't be installed by the usual aptitude install, which will resolve the dependency issue). However, when I do a 'aptitude search daemontools', it is a virtual package, which cannot be installed. So, now I'm trying to find out what are the packages that can satisfy daemontools as a virtual package.

Thanks !


Quote:
Originally posted by uberNUT69
How about
$ apt-cache showpkg gforge-ldap-openldap
 
Old 11-05-2005, 12:50 AM   #4
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Ahh,
in that case, how about:

# apt-cache search djbdns
ldap2dns - LDAP based DNS management system.
libdjbdns1 - DNS client library designed to replace the BIND res_*/dn_* library
libdjbdns1-dev - DNS client library designed to replace the BIND res_*/dn_* library
djbdns-installer - Source only package for building djbdns

# apt-cache showpkg djbdns-installer
Package: djbdns-installer
Versions:
1.05-11(/var/lib/apt/lists/mirror.internode.on.net_debian_dists_testing_contrib_binary-i386_Packages)(/var/lib/apt/lists/mirror.internode.on.net_debian_dists_sid_contrib_binary-i386_Packages)(/var/lib/apt/lists/mirror.internode.on.net_debian_dists_sarge_contrib_binary-i386_Packages)

Reverse Depends:
ldap2dns,djbdns-installer
ldap2dns,djbdns-installer
Dependencies:
1.05-11 - dpkg-dev (2 1.4.0.20) patch (2 2.5-0bo1) fakeroot (16 (null)) sudo (0 (null)) gcc (0 (null)) make (0 (null)) debhelper (0 (null)) daemontools-installer (16 (null)) daemontools (0 (null)) wget (0 (null)) ucspi-tcp-src (0 (null))
Provides:
1.05-11 -
Reverse Provides:

# apt-get install -s djbdns-installer
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
daemontools-installer
Suggested packages:
ucspi-tcp-src
The following NEW packages will be installed:
daemontools-installer djbdns-installer
0 upgraded, 2 newly installed, 0 to remove and 53 not upgraded.
Inst daemontools-installer (0.76-9 Debian:testing, Debian:3.1r0/stable)
Inst djbdns-installer (1.05-11 Debian:testing, Debian:3.1r0/stable)
Conf daemontools-installer (0.76-9 Debian:testing, Debian:3.1r0/stable)
Conf djbdns-installer (1.05-11 Debian:testing, Debian:3.1r0/stable)
 
Old 11-05-2005, 12:53 AM   #5
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
ps. don't forget debian.org
http://packages.debian.org/cgi-bin/s...mozilla-search
http://packages.debian.org/cgi-bin/s...searchon=names
 
Old 11-05-2005, 12:26 PM   #6
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Original Poster
Rep: Reputation: 30
In another scenerio, I have a package that requires "mail-transport-agent" to be installed. How can I find out what are the packages that will provide the virtual package?
Or yet another scenerio, I need to have a virtual package called "X11-text-viewer" to be installed and from reading some examples in the man pages for apt-cache, I get to know that only one package, "xless", provides for "X11-text-viewer". Is there any command that will let us know that the required package is "xless"?

Thanks !

PS. I did try to search for "mail-transport-agent" and "X11-text-viewer" at http://www.debian.org/distrib/packages , but there is no result returned.
 
Old 11-05-2005, 05:13 PM   #7
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
http://packages.debian.org/stable/virtual/
 
Old 11-05-2005, 05:35 PM   #8
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Original Poster
Rep: Reputation: 30
Hey that's the exact output I want, but how can I accomplish that via the commandline (apt-get / aptitude / apt-cache) ?

Thanks !


Quote:
Originally posted by uberNUT69
http://packages.debian.org/stable/virtual/
 
Old 11-05-2005, 06:02 PM   #9
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
not sure if there's a proper way, how about:
$ apt-cache dumpavail | egrep "Package|Provides" | less
 
Old 11-05-2005, 09:40 PM   #10
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Must be a better way, but here's something with a neater(?) output:
$ apt-cache dumpavail | egrep "Package|Provides" | sed -n -e '/Provides:/{x;p;g;p;}' -e h | less
 
  


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
what package does a program belong to? eantoranz Ubuntu 4 08-11-2005 03:28 PM
aptitude removing packages Tons of Fun Debian 2 06-05-2005 04:20 PM
Which package do these files belong to? dubya Linux - Software 6 12-28-2004 06:40 PM
find files that do not belong to any package? Pinchiukas Slackware 10 09-15-2004 07:26 AM
How do I find out what package a given command comes from? WeNdeL Linux - Newbie 2 05-19-2003 09:11 AM


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