LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-16-2013, 12:16 PM   #1
eldiener
Member
 
Registered: Nov 2006
Distribution: Mepis, CentOS, OpenSuse
Posts: 56

Rep: Reputation: 16
Package name from application name


Given an application name is there some command to determine from what package the application has been installed ? Using RPM ? Using APT ?
 
Old 03-16-2013, 01:45 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,220

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by eldiener View Post
Given an application name is there some command to determine from what package the application has been installed ?
I don't know what distro you are running but I assume you are talking about your running system, you should know what packaging your distro is using. To know which package installed it, usually there is a package folder (record) in the /var. In my slackware it looks exactly /var/log/packages/, you can search what it looks like in your system:

Code:
find /var -type d -iname \*package*
In my system to find out which package installed certain application binary is easy. Let us say we want to know what package installed an application called 'minicom' --
Code:
grep -li bin/minicom /var/log/packages/*
and it will return the identity of the package what installed the 'minicom'. Now to find out all (what) files this package installed into the system--

Code:
cat /var/log/packages/minicom*
should list down all what particular package has added into the system.

Hope that helps.
 
Old 03-16-2013, 03:44 PM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
On RPM based systems:
Code:
rpm -qf `which command`
or
Code:
rpm -qf /path/to/file
On DEB based systems:
Code:
dpkg -S `which command`
or
Code:
dpkg -S /path/to/file
 
Old 03-17-2013, 12:14 PM   #4
eldiener
Member
 
Registered: Nov 2006
Distribution: Mepis, CentOS, OpenSuse
Posts: 56

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by colucix View Post
On RPM based systems:
Code:
rpm -qf `which command`
or
Code:
rpm -qf /path/to/file
On DEB based systems:
Code:
dpkg -S `which command`
or
Code:
dpkg -S /path/to/file
Much thanks ! That is what I was looking for.
 
  


Reply

Tags
application, apt, package, rpm


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
make debian package of application made in qt ac_kumar Linux - Software 1 10-20-2011 11:04 AM
Unable to Install any application using synaptic package manager. yasaswisrikanth Linux - Software 2 12-09-2010 04:08 AM
Unable to Install any application using synaptic package manager. yasaswisrikanth Linux Mint 1 12-08-2010 08:43 PM
a web site building application / package lothario Linux - Software 1 09-09-2009 05:59 AM
Trouble of Installing new package, application and memory in RH9 lhksys Linux - Software 0 11-26-2003 02:30 AM


All times are GMT -5. The time now is 10:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration