Docker Community Forums

Share and learn in the Docker community.

How to downgrade an installed library version in linux

Currently I’m doing development using the packet capture library: libpcap on a CentOS box. I installed the latest version libpcap 1.1 using the source code and later I got to know that I’d the older version libpcap 0.9.4 already installed on my system. Now the application I’m building uses the latest libpcap i.e 1.1 version. The problem I’m facing is that the embedded Linux boxes on which my application is going to run does not have the latest libpcap 1.1 version installed(its a pain to install the latest version as we’ve to compile the source code which itself requires a lot of things to be installed) and luckily the embedded Linux boxes have yum configured and the older version of libpcap 0.9.4 is available through standard repository. As we have a lot of such embedded boxes, I think the best option is to the downgradethe libpcap version from 1.1 to 0.9.4(or somehow use the older one during the build process) on my development box so that the built binary depends on the older version which is readily available on the embedded Linux box