3

I am trying to install deb package which contains .h, .so and .a files. After installing the deb package I am unable to find the installed location.

I checked /usr/lib, /usr/local/lib and /lib. I am supposed to install the .so and .a files in /usr/lib from deb package. To solve my problem, I copied the .a files from the extracted .deb to /usr/lib but the .so files are not copying. Please help to solve this problem.

2 Answers 2

3

Check out apt-file.

apt-file search horst.so

See documentation at wiki.debian.org

1
  • apt-file is not supported in newer version of debian/ubuntu.
    – Simon
    Commented Oct 5, 2022 at 7:52
0

To find which files were installed by a package, use dpkg -L:

dpkg -L $package

if you have the package as a .deb file locally, you can run dpkg on it:

 dpkg --contents $package.deb

So you can find where .so file is located

16
  • In software center it shows deb package is installed and in terminal its showing "dpkg-query: package 'libgmt-dev_4.5.12-1_amd64' is not installed".
    – GTR
    Commented Nov 5, 2015 at 10:39
  • try dpkg -L libgmt-dev
    – LilloX
    Commented Nov 5, 2015 at 10:43
  • There are in "/." "/usr". Why? I need these files during installation of another application in /usr/lib and some other locations. How to unhide these files and after unhiding those will come to the required locations?
    – GTR
    Commented Nov 5, 2015 at 10:57
  • Sorry, but I did not understand...the ouptut of the command shows you where each file is copied, btw the .a and .so files are under /usr/lib as you can see
    – LilloX
    Commented Nov 5, 2015 at 11:13
  • Command shows as follows
    – GTR
    Commented Nov 5, 2015 at 11:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .