LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   find files associated with a package using Ubuntu (http://www.linuxquestions.org/questions/linux-general-1/find-files-associated-with-a-package-using-ubuntu-4175430699/)

metallica1973 10-05-2012 11:59 AM

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?

metallica1973 10-05-2012 03:55 PM

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 


metallica1973 02-04-2013 11:46 AM

does anyone know the RPM equivalent?

Nevermind:

yum provides <path-to-file>

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

Habitual 02-04-2013 12:45 PM

Quote:

Originally Posted by metallica1973 (Post 4884207)
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


All times are GMT -5. The time now is 06:22 PM.