LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 05-13-2003, 04:41 AM   #1
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
dpkg


What would be the equivalent of rpm -q --whatprovides blah
in debian systems?
 
Old 05-13-2003, 03:30 PM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
rpm -qa is like dpkg --list or what exactly are you looking for ? Information about a package? dpkg -p <packagename> ... just man dpkg :-)
 
Old 05-14-2003, 01:09 AM   #3
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Original Poster
Rep: Reputation: 48
Quote:
Originally posted by markus1982
rpm -qa is like dpkg --list or what exactly are you looking for ? Information about a package? dpkg -p <packagename> ... just man dpkg :-)
First I know about dpkg -p and I am not that stupid not to read the man page before coming here.
In rpm we have a option
rpm -q --whatprovides which gives the package name which provides a particular utility
ex:
rpm -q --whatprovides /sbin/init
returns SysVinit-2.78
so that next time round I can try
rpm -q SysVinit
or rpm -qil SysVinit
I was just wondering whether thereis something similiar in debian systems with dpkg
 
Old 05-14-2003, 08:02 AM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,839

Rep: Reputation: 48
This isn't a 'dpkg' command, but:

apt-cache showpkg "packagename"

displays package info.

Good Luck
 
Old 05-14-2003, 01:11 PM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
apt-file is what you are after. and i did not assume you are stupid or didn't quickly check the man pages. take a look at apt-file package information.

Quote:
apt-file is a command line tool for searching packages for the APT packaging system.

Unlike apt-cache, you can search in which package a file is included or list the contents of a package without installing or fetching it.
 
Old 05-15-2003, 03:54 AM   #6
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Original Poster
Rep: Reputation: 48
Quote:
Originally posted by markus1982
apt-file is what you are after. and i did not assume you are stupid or didn't quickly check the man pages. take a look at apt-file package information.
Thanks
This is what I was looking for.
 
Old 05-15-2003, 08:25 AM   #7
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Original Poster
Rep: Reputation: 48
I was going through the man pages again.
apt-file would work for those packages which are not installed.
With dpkg I got this
dpkg -S /sbin/init
returned sysvinit
now i did
dpkg -p sysvinit
now
dpkg -L sysvinit
returned all the files that were installed from sysvinit
thus it worked like
rpm -q --whatprovides /sbin/init
and
rpm -qil SysVinit
Anyway thanks for your help
I must be getting more dumber every moment(I "read" the man pages but missed this information)
 
  


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
APT/dpkg errors! /var/lib/dpkg/status bassclarinet Debian 16 12-01-2011 09:24 AM
dpkg is dead! error in /var/lib/dpkg/available dezert_fox Debian 4 11-22-2011 10:28 AM
dpkg? help frkstein Debian 4 04-25-2005 03:57 PM
new kernel with dpkg -i kingka Debian 4 12-04-2003 03:25 PM
dpkg -l dunkyb Linux - Software 5 02-04-2003 03:18 PM


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