Ubuntu Bionic provides Protobuf 3.0.0, and I'd like to use the latest release, 3.6.1.
I've gone and built the Protobuf sources and installed them with the prefix /usr
, so the files end up in the same place that the official Ubuntu package puts them.
However, if I subsequently issue an apt-get install protobuf-compiler
, it will overwrite my protoc
binary with the older version. (Actually, protobuf-compiler
is specified as a build dependency of a package I'm building with mk-build-deps
.)
I've tried using apt-mark manual protobuf-compiler
to tell apt
that I've manually installed it, but it tells me I can't do that because the package is not installed. (How does it determine this? I don't know.)
Similarly apt-mark hold
does not prevent the binary from being overwritten.
What is the correct way to install this software, have apt
understand that the dependency is satisfied, and not have it overwrite my newer build with the old one?