How To Install golang-golang-x-net-dev on Ubuntu 22.04
Introduction
In this tutorial we learn how to install golang-golang-x-net-dev
on Ubuntu 22.04.
What is golang-golang-x-net-dev
golang-golang-x-net-dev is:
Supplementary Go networking libraries (golang.org/x/net) not included in the main distribution:
- context: Package context defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.
- dict: Package dict implements the Dictionary Server Protocol as defined in RFC 2229.
- html: Package html implements an HTML5-compliant tokenizer and parser.
- html/atom: Package atom provides integer codes (also known as atoms) for a fixed set of frequently occurring HTML strings: tag names and attribute keys such as “p” and “id”.
- html/charset: Package charset provides common text encodings for HTML documents.
- icmp: Package icmp provides basic functions for the manipulation of messages used in the Internet Control Message Protocols, ICMPv4 and ICMPv6.
- idna: Package idna implements IDNA2008 (Internationalized Domain Names for Applications), defined in RFC 5890, RFC 5891, RFC 5892, RFC 5893 and RFC 5894.
- internal/iana: Package iana provides protocol number resources managed by the Internet Assigned Numbers Authority (IANA).
- internal/nettest: Package nettest provides utilities for IP testing.
- ipv4: Package ipv4 implements IP-level socket options for the Internet Protocol version 4.
- ipv6: Package ipv6 implements IP-level socket options for the Internet Protocol version 6.
- netutil: Package netutil provides network utility functions, complementing the more common ones in the net package.
- proxy: Package proxy provides support for a variety of protocols to proxy network data.
- publicsuffix: Package publicsuffix provides a public suffix list based on data from http://publicsuffix.org/.
- webdav: Package webdav.
- websocket: Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455.
This repository was previously available at https://code.google.com/p/go.net/
There are three methods to install golang-golang-x-net-dev
on Ubuntu 22.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-golang-x-net-dev 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-golang-x-net-dev
using apt-get
by running the following command:
sudo apt-get -y install golang-golang-x-net-dev
Install golang-golang-x-net-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install golang-golang-x-net-dev
using apt
by running the following command:
sudo apt -y install golang-golang-x-net-dev
Install golang-golang-x-net-dev 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-golang-x-net-dev
using aptitude
by running the following command:
sudo aptitude -y install golang-golang-x-net-dev
How To Uninstall golang-golang-x-net-dev on Ubuntu 22.04
To uninstall only the golang-golang-x-net-dev
package we can use the following command:
sudo apt-get remove golang-golang-x-net-dev
Uninstall golang-golang-x-net-dev And Its Dependencies
To uninstall golang-golang-x-net-dev
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove golang-golang-x-net-dev
Remove golang-golang-x-net-dev Configurations and Data
To remove golang-golang-x-net-dev
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge golang-golang-x-net-dev
Remove golang-golang-x-net-dev configuration, data, and all of its dependencies
We can use the following command to remove golang-golang-x-net-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge golang-golang-x-net-dev
References
Summary
In this tutorial we learn how to install golang-golang-x-net-dev
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.