How to Install and Uninstall protoc-gen-go Package on Debian 12 (Bookworm)

Last updated: May 20,2024

1. Install "protoc-gen-go" package

Please follow the step by step instructions below to install protoc-gen-go on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install protoc-gen-go

2. Uninstall "protoc-gen-go" package

Please follow the guidance below to uninstall protoc-gen-go on Debian 12 (Bookworm):

$ sudo apt remove protoc-gen-go $ sudo apt autoclean && sudo apt autoremove

3. Information about the protoc-gen-go package on Debian 12 (Bookworm)

Package: protoc-gen-go
Source: golang-google-protobuf (1.28.1-3)
Version: 1.28.1-3+b2
Installed-Size: 5877
Maintainer: Debian Go Packaging Team
Architecture: amd64
Depends: libprotobuf-dev, protobuf-compiler
Conflicts: golang-goprotobuf-dev, protoc-gen-go-1-3, protoc-gen-go-1-5
Description: Go plugin for protobuf compiler (APIv2)
Description-md5: de89c175b2d408de1772318ee6de510c
Homepage: https://github.com/protocolbuffers/protobuf-go
Built-Using: golang-1.19 (= 1.19.8-2), golang-github-google-go-cmp (= 0.5.9-1)
Section: devel
Priority: optional
Filename: pool/main/g/golang-google-protobuf/protoc-gen-go_1.28.1-3+b2_amd64.deb
Size: 1867000
MD5sum: f393b59d5e36e102fc1be1d9901305b3
SHA256: 7525aa3f32d1c6b8af1252c40e015ea4dea481649d25b8df8e8ac401b2556776