HowTo find which Ubuntu package a library is in?
Posted: Wed 09 Jan 2013, 05:08
I`m writing an Ubuntu library downloader in Bash.
I have it parsing the web files for the FTP dirs.
Example: libavcodec.so.52 is needed for Kino and mPlayer.
These are the relevant links from the Ubuntu web page:
This command shows the real library Puppy has:
The needed library is: /usr/lib/libavcodec.so.52.72.2
### How to know what package contains the needed library?
This is a problem for finding any dependency.
I have it parsing the web files for the FTP dirs.
Example: libavcodec.so.52 is needed for Kino and mPlayer.
These are the relevant links from the Ubuntu web page:
Code: Select all
libavcodec52_0.6.2-1ubuntu1_amd64.deb
libavcodec52_0.6.2-1ubuntu1_i386.deb
libavcodec52_0.6.6-0ubuntu0.11.04.1_amd64.deb
libavcodec52_0.6.6-0ubuntu0.11.04.1_i386.deb
libavcodec53_0.7.2-1ubuntu1_amd64.deb
Code: Select all
realpath `ldd /root/.usr/bin/mplayer |awk '{print $3}'`
### How to know what package contains the needed library?
This is a problem for finding any dependency.