How To Install golang-libnetwork on Ubuntu 18.04
Introduction
In this tutorial we learn how to install golang-libnetwork
on Ubuntu 18.04.
What is golang-libnetwork
golang-libnetwork is:
Libnetwork provides a native Go implementation for connecting containers
The goal of libnetwork is to deliver a robust Container Network Model that provides a consistent programming interface and the required network abstractions for applications.
This package contains various command line binaries.
There are three methods to install golang-libnetwork
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 golang-libnetwork Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install golang-libnetwork
using apt-get
by running the following command:
sudo apt-get -y install golang-libnetwork
Install golang-libnetwork Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install golang-libnetwork
using apt
by running the following command:
sudo apt -y install golang-libnetwork
Install golang-libnetwork 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 golang-libnetwork
using aptitude
by running the following command:
sudo aptitude -y install golang-libnetwork
How To Uninstall golang-libnetwork on Ubuntu 18.04
To uninstall only the golang-libnetwork
package we can use the following command:
sudo apt-get remove golang-libnetwork
Uninstall golang-libnetwork And Its Dependencies
To uninstall golang-libnetwork
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove golang-libnetwork
Remove golang-libnetwork Configurations and Data
To remove golang-libnetwork
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge golang-libnetwork
Remove golang-libnetwork configuration, data, and all of its dependencies
We can use the following command to remove golang-libnetwork
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-libnetwork
References
Summary
In this tutorial we learn how to install golang-libnetwork
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.