How To Install gb on Ubuntu 18.04
Introduction
In this tutorial we learn how to install gb
on Ubuntu 18.04.
What is gb
gb is:
“gb” is a proof of concept replacement build tool for the Go programming language.
“gb” operates on the concept of a project. A gb project is a workspace for all the Go code that is required to build your project.
A gb project is a folder on disk that contains a subdirectory named src/. That’s it, no environment variables to set.
You can create as many projects as you like and move between them simply by changing directories.
There are three methods to install gb
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install gb Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install gb
using apt-get
by running the following command:
sudo apt-get -y install gb
Install gb Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install gb
using apt
by running the following command:
sudo apt -y install gb
Install gb Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install gb
using aptitude
by running the following command:
sudo aptitude -y install gb
How To Uninstall gb on Ubuntu 18.04
To uninstall only the gb
package we can use the following command:
sudo apt-get remove gb
Uninstall gb And Its Dependencies
To uninstall gb
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove gb
Remove gb Configurations and Data
To remove gb
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge gb
Remove gb configuration, data, and all of its dependencies
We can use the following command to remove gb
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge gb
References
Summary
In this tutorial we learn how to install gb
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.