Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 09-06-2007, 03:44 AM   #1
Registered: Sep 2005
Distribution: Debian unstable && Kazit (reformated knoppix)
Posts: 194

Rep: Reputation: 31
how to find a package installed ?

Hello ,..

im thinkg to change some constaenats in smser project:
there are few constants that look at /usr/bin/centericq to hold the directiry that the centerim had been installed.

i thouth about
find / -name centerim -print
but it isn't so wise how can i find it using apt and rpm (since both are very common package managers)..
Old 09-06-2007, 08:29 AM   #2
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,239
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Err maybe this is what you are looking for... not quite sure I understood the question..

$ dpkg -L package ... # list filenames installed by the package
Old 09-06-2007, 04:42 PM   #3
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 12 LXDE
Posts: 555

Rep: Reputation: 33
You could also try "locate centerim | less". This should find all instances of centerim.
Old 09-06-2007, 07:59 PM   #4
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Mind you, rpm doesn't work on Debian. Nor will a .deb package be understood by rpm. So, in short: don't use the package manager but use common tools instead. If you can't do w/o the package manager, use a script to determine which version of the command should be used. Something like this:
if <system=debian-based> 
   then <dpkg command>
else <rpm command>
Fill in the rest yourself


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
pkg-config can't find installed package JAKK Slackware 16 08-11-2008 09:07 AM
How to find out if you have a specific package installed? AriciU Slackware 2 07-08-2007 10:58 PM
How to find if package is installed Redbone981sl Ubuntu 4 01-23-2007 06:03 PM
installed firefox package on slackware 10.0, i can't find it salviadud Slackware 10 03-04-2005 09:22 PM
How to find the complete path of an installed package samik Linux - Newbie 1 10-26-2003 02:19 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration