Find files associated with a package using Ubuntu


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Find files associated with a package using Ubuntu
# 1  
Old 10-05-2012
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?
# 2  
Old 10-05-2012
That line says someone is running java in that process 11399, which dynamically linked to this library in the jre7.0_07 package, so between more 'lsof' and a wide 'ps' you can find out what they ran and all the files currently open. The truss/tusc/strace tool for your OS can be attached with -p by same user or root to see what system calls it is running. However, past opens for config or data now closed are not disclosed, nor future opens for config, data or dynamic libs.
# 3  
Old 10-05-2012
Thanks for the reply, I meant the file

PHP Code:
/usr/lib/java/jre1.7.0_07/lib/i386/libt2k.so 
how can I find out what java Ubuntu package this belongs too from the deb package archive on my desktop?

I think 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 
Thanks for the help
# 4  
Old 10-05-2012
dpkg -S is fine to search, as you wrote, among installed packages.
A more generic search can be performed using apt-file search.
--
Bye
# 5  
Old 10-09-2012
If you use 'yum', it has a variety of similar searches, for those in rpm land: yum
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to install older package version on Ubuntu 18.04?

Hello, I'm running Ubuntu 18.04 and I would like to install libboost-python version 1.46. Currently I have installed version 1.65: wakatana@local-machine:~$ dpkg -l | grep libboost-python ii libboost-python-dev 1.65.1.0ubuntu1 amd64 ... (1 Reply)
Discussion started by: wakatana
1 Replies

2. Shell Programming and Scripting

Installing RPM package using alien on WSL Ubuntu

I was just flirting with the idea of installing one package (bcl2fas2) on my WSL:Ubuntu using alien. However, when I run sudo alien bcl2fastq2-v2.20.0.422-Linux-x86_64.rpm I get the following error: Package build failed. Here's the log: dh_testdir dh_testdir dh_testroot dh_prep... (0 Replies)
Discussion started by: Xterra
0 Replies

3. Ubuntu

Ubuntu software package compatibility

I don't have internet connection in my Ubuntu server, so package download directly from internet is not possible. So if I download package from Index of /ubuntu How do I find which version of package is compatible with my Release of Ubuntu server ( 15.10 ) user01@ubuntu01:~$ lsb_release -a... (0 Replies)
Discussion started by: hiten.r.chauhan
0 Replies

4. Ubuntu

Upgrade a package on Ubuntu

Hi, I want to upgrade a package to a specified version on Ubuntu, can you please shed some light? I know we can do it with but jere i want to upgrade the package to a specified version. Can someone please assist? Thanks (1 Reply)
Discussion started by: prash358
1 Replies

5. UNIX for Dummies Questions & Answers

ubuntu 10.10 quilt package

Hello, i try to install quilt package on ubuntu 10.10 : apt-get install quilt but i have this error: Reading package lists... Done Building dependency tree Reading state information... Done Package quilt is not available, but is referred to by another package. This may mean... (1 Reply)
Discussion started by: chercheur857
1 Replies

6. Ubuntu

Installing md5 package into ubuntu

Hi i want to install md5 package into ubuntu. any idea how? Apparently applying md5sum and md5 on a string (not a file) gives a different value! The one that I need to use is the md5 command, but it says command not found when i type md5 in bash. (2 Replies)
Discussion started by: jremio
2 Replies

7. Ubuntu

How to Install TCSH package in Ubuntu 11?

I am trying to install tcsh package in ubuntu 11 When i tried to invoke the tcsh,i was prompted to contact administrator to install tcsh package. Since i am also the admin on my system its my job to install tcsh :D I have downloaded tcsh package named "tcsh-6.17.00.tar", since i don not have... (12 Replies)
Discussion started by: animesharma
12 Replies

8. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

9. Ubuntu

unable to install package on Ubuntu

Hi all, I am working on Ubuntu 7.10 and I want to install libssl-dev_0.9.8a-7ubuntu0.13_i386.deb. So tryied it with apt-get command but getting the following error-- Then I downloaded .deb file and attempt to install it with package installer but again unable to install it and getting the... (3 Replies)
Discussion started by: smartgupta
3 Replies
Login or Register to Ask a Question