LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-05-2012, 11:59 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,118

Rep: Reputation: 58
find files associated with a package using Ubuntu


Stupid question of the day.

How can I find a file that is associated with a package installed on my Ubuntu 12.04 desktop. More clarification, so if I:

PHP Code:
lsof -p 11399
java    11399 davider  mem    REG        8
,6   438211   265067 /usr/lib/java/jre1.7.0_07/lib/i386/libt2k.so 
How can I find the program that this file is associated with?
 
Old 10-05-2012, 03:55 PM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,118

Original Poster
Rep: Reputation: 58
Wink

Nevermind, I figured it out:

PHP Code:
sudo dpkg -S Unix.pm
perl
-modules: /usr/share/perl/5.14.2/ExtUtils/CBuilder/Platform/Unix.pm
perl
-modules: /usr/share/perl/5.14.2/Module/Build/Platform/Unix.pm
perl
-base: /usr/lib/perl/5.14.2/File/Spec/Unix.pm
liburi
-perl: /usr/share/perl5/URI/file/Unix.pm
perl
-modules: /usr/share/perl/5.14.2/ExtUtils/MM_Unix.pm
libdatetime
-timezone-perl: /usr/share/perl5/DateTime/TimeZone/Local/Unix.pm 
 
Old 02-04-2013, 11:46 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,118

Original Poster
Rep: Reputation: 58
does anyone know the RPM equivalent?

Nevermind:

yum provides <path-to-file>

http://www.thegeekstuff.com/2011/08/...mand-examples/

Last edited by metallica1973; 02-04-2013 at 12:08 PM.
 
Old 02-04-2013, 12:45 PM   #4
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,618
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by metallica1973 View Post
does anyone know the RPM equivalent?

Nevermind:

yum provides <path-to-file>

http://www.thegeekstuff.com/2011/08/...mand-examples/
I SO 'missed" Nevermind.

Code:
rpm -qf /path/to/file
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(Ubuntu 10.04) How to find source of an installed apt package? dewdrop_world Linux - Software 4 01-19-2011 04:45 AM
can't find package sqlite3 - using TCL on Ubuntu miamagoo Programming 4 06-09-2010 12:51 PM
How to list/find all files etc related to a package? linus72 Slackware 3 08-28-2009 09:10 PM
find files that do not belong to any package? Pinchiukas Slackware 10 09-15-2004 08:26 AM
how to find all files and programs in a package (RPM) 1kyle Linux - Software 1 07-13-2004 05:16 AM


All times are GMT -5. The time now is 09:47 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