6

I have /usr/lib32/libstdc++.so.6 library on my Ubuntu system. I would like to know which package brought it there. How to know that?

vico
  • 4,527
  • 21
  • 58
  • 87
  • libstdc++.so.6 is the C++ standard library - many applications (including those shipped by Ubuntu) depend on it. – Jonas Czech Mar 15 '18 at 14:36

4 Answers4

7

Please run dpkg -S /usr/lib32/libstdc++.so.6

mariaczi
  • 419
5

Now that you know which package /usr/lib32/libstdc++.so.6 came from, you can find out which packages depend on lib32stdc++6 by running:

sudo apt-cache rdepends lib32stdc++6

This will give you a list of package(s) that depend/installed lib32stdc++6

stumblebee
  • 3,547
3

Another solution is to use the tool apt-file :

  • Install it using :

    $ sudo apt-get update && sudo apt-get install apt-file
    
  • Update it's database :

    $ sudo apt-file update
    
  • Search for your desired file :

    $ sudo apt-file search /usr/lib32/libstdc++.so.6
    

The result should be :

$ apt-file search /usr/lib32/libstdc++.so.6
lib32stdc++6: /usr/lib32/libstdc++.so.6
lib32stdc++6: /usr/lib32/libstdc++.so.6.0.21
lib32stdc++6: /usr/share/gdb/auto-load/usr/lib32/libstdc++.so.6.0.21-gdb.py
lib32stdc++6-5-dbg: /usr/lib/debug/usr/lib32/libstdc++.so.6.0.21

/usr/lib32/libstdc++.so.6

Which lead us to know that the package which installed should be lib32stdc++6.

Maki
  • 121
  • 7
rebrec
  • 339
1

You can search it in https://packages.ubuntu.com

For your case will be this link.

Maki
  • 121
  • 7