libpq-dev depends libpq5 code example Example: libpq-dev depends libpq5 sudo apt install libpq5=10.12-0ubuntu0.18.04.1