LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 10:59 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
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, 02:55 PM   #2
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
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, 10:46 AM   #3
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
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 11:08 AM.
 
Old 02-04-2013, 11:45 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

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



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 03:45 AM
can't find package sqlite3 - using TCL on Ubuntu miamagoo Programming 4 06-09-2010 11:51 AM
How to list/find all files etc related to a package? linus72 Slackware 3 08-28-2009 08:10 PM
find files that do not belong to any package? Pinchiukas Slackware 10 09-15-2004 07:26 AM
how to find all files and programs in a package (RPM) 1kyle Linux - Software 1 07-13-2004 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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