Categories: Ubuntu

How to install Protobuf on Ubuntu

Protocol Buffer, abbreviated as Protobuf, is an open source library developed by Google that allows to serialize or deserialize structured data. It is used to communicate with one another over a network and to store data when building applications.

In this article we are going to install Protobuf on Ubuntu (Linux OS) by below mentioned methods, you can follow any of these methods for successful installation of Protobuf.

Installation of Protobuf Using Command Line on Ubuntu:

We can install Protobuf by giving commands on Ubuntu terminal:

Step1: Update the Packages : Firstly, you need to update all the previous packages installed on your system:

Sponsored
$ sudo apt update

Step2: Install Protobuf : Now to install Protobuf compiler on your Ubuntu system, run the below mentioned command:

$ sudo apt install protobuf-compiler

Uninstall Protobuf from Ubuntu system using terminal

Run the below mentioned command to remove protobuf-compiler installed from above method:

$ sudo apt-get remove protobuf-compiler

Run the below mentioned command to remove its dependent packages:

$ sudo apt-get autoremove protobuf-compiler

Installation of Protobuf Using Ubuntu Software Center

We can also install Protobuf using another method, by directly installing it through Ubuntu software Manager. Follow the step below for successful installation:

Step1: Login to Ubuntu System, open the Ubuntu software Manager by double clicking on the icon.

Step 2: Now in the explore tab click on the search tab and write “Protobuf”:

Step 3: Now click on “Protobuf” option shown in the list below:

Step4: A new window will be opened now click on install button to start the installation of “protobuf-compiler”:

Sponsored

Step 5: After you click on install, an authentication tab will be opened, you have to enter your login password there and click on “Authenticate”:

Step 6: You can see your installation progress below:

Step 7: After Protobuf is installed, you can check it by going to installed tab on Ubuntu software, it will appear in list of apps if installed successfully, as it is shown below:

Remove Protobuf from Ubuntu System using software center

If you don’t need protobuf installed by above method and want to remove it then follow the steps given below:

Open the ubuntu software manager and click on installed tab:

Now search for “Protobuf” from the list of apps and click on “Remove” button in front of it as shown below:

A permission dialogue box will get open click on “Remove” to uninstall the application:

And now protobuf will be uninstalled successfully and no longer exist in the list.

Conclusion

Protobuf is a free and cross platform library used for serialization and deserialization of structured data. In this write up we discussed two methods of installation of Protobuf on Ubuntu system and also its uninstallation. One method is using the command-line on Ubuntu and the other one is using Ubuntu Software Manager, you can follow any of these, you find it easy.

Ubuntu Server Admin

Recent Posts

Canonical Releases Ubuntu 25.04 Plucky Puffin

The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…

22 hours ago

Ubuntu 25.04 (Plucky Puffin) Released

Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…

2 days ago

Extended Security Maintenance for Ubuntu 20.04 (Focal Fossa) begins May 29, 2025

Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…

2 days ago

Ubuntu 20.04 LTS End Of Life – activate ESM to keep your fleet of devices secure and operational

Focal Fossa will reach the End of Standard Support in May 2025, also known as…

3 days ago

Ubuntu MATE 25.04 Release Notes

Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…

3 days ago

Ubuntu Weekly Newsletter Issue 887

Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…

4 days ago