LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 11:16 AM   #1
eldiener
Member
 
Registered: Nov 2006
Distribution: Mepis, CentOS, OpenSuse
Posts: 106

Rep: Reputation: 17
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, 12:45 PM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
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, 02:44 PM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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, 11:14 AM   #4
eldiener
Member
 
Registered: Nov 2006
Distribution: Mepis, CentOS, OpenSuse
Posts: 106

Original Poster
Rep: Reputation: 17
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:48 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
Open Source Consulting | Domain Registration