LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 03: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, 08:29 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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, 04:42 PM   #3
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
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:
Code:
if <system=debian-based> 
   then <dpkg command>
else <rpm command>
Fill in the rest yourself
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:54 PM.

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
Open Source Consulting | Domain Registration