LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-06-2007, 04:44 AM   #1
jabka
Member
 
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
Code:
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, 09:29 AM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

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

http://www.debian.org/doc/manuals/qu...s-info-package

Quote:
$ dpkg -L package ... # list filenames installed by the package
 
Old 09-06-2007, 05:42 PM   #3
mikieboy
Member
 
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, 08:59 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,684

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:
Code:
if <system=debian-based> 
   then <dpkg command>
else <rpm command>
Fill in the rest yourself
 
  


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


All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
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