apt install protoc code example
Example: install protoc ubuntu
$ apt install -y protobuf-compiler
$ protoc --version # Ensure compiler version is 3+
$ apt install -y protobuf-compiler
$ protoc --version # Ensure compiler version is 3+