-   Debian (
-   -   how to find a package installed ? (

jabka 09-06-2007 03:44 AM

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)..

farslayer 09-06-2007 08:29 AM

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

mikieboy 09-06-2007 04:42 PM

You could also try "locate centerim | less". This should find all instances of centerim.

Dutch Master 09-06-2007 07:59 PM

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 ;)

All times are GMT -5. The time now is 08:05 AM.