How To Install golang-github-davecgh-go-xdr-dev on Debian 12

Learn how to install golang-github-davecgh-go-xdr-dev on Debian 12 with this tutorial. golang-github-davecgh-go-xdr-dev is Pure Go XDR standard (RFC 4506) implementation

Introduction

In this tutorial we learn how to install golang-github-davecgh-go-xdr-dev on Debian 12.

What is golang-github-davecgh-go-xdr-dev

golang-github-davecgh-go-xdr-dev is:

Go-xdr implements the data representation portion of the External Data Representation (XDR) standard protocol as specified in RFC 4506 (obsoletes RFC 1832 and RFC 1014) in Pure Go (Golang). A comprehensive suite of tests are provided to ensure proper functionality. It is licensed under the liberal ISC license, so it may be used in open source or commercial projects.

NOTE: Version 1 of this package is still available via the github.com/davecgh/go-xdr/xdr import path to avoid breaking existing clients. However, it is highly recommended that all old clients upgrade to version 2 and all new clients use version 2. In addition to some speed optimizations, version 2 has been been updated to work with standard the io.Reader and io.Writer interfaces instead of raw byte slices. This allows it to be much more flexible and work directly with files, network connections, etc.

There are three methods to install golang-github-davecgh-go-xdr-dev on Debian 12. 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-github-davecgh-go-xdr-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-github-davecgh-go-xdr-dev using apt-get by running the following command:

sudo apt-get -y install golang-github-davecgh-go-xdr-dev

Install golang-github-davecgh-go-xdr-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-davecgh-go-xdr-dev using apt by running the following command:

sudo apt -y install golang-github-davecgh-go-xdr-dev

Install golang-github-davecgh-go-xdr-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install golang-github-davecgh-go-xdr-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-davecgh-go-xdr-dev

How To Uninstall golang-github-davecgh-go-xdr-dev on Debian 12

To uninstall only the golang-github-davecgh-go-xdr-dev package we can use the following command:

sudo apt-get remove golang-github-davecgh-go-xdr-dev

Uninstall golang-github-davecgh-go-xdr-dev And Its Dependencies

To uninstall golang-github-davecgh-go-xdr-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove golang-github-davecgh-go-xdr-dev

Remove golang-github-davecgh-go-xdr-dev Configurations and Data

To remove golang-github-davecgh-go-xdr-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge golang-github-davecgh-go-xdr-dev

Remove golang-github-davecgh-go-xdr-dev configuration, data, and all of its dependencies

We can use the following command to remove golang-github-davecgh-go-xdr-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge golang-github-davecgh-go-xdr-dev

Dependencies

golang-github-davecgh-go-xdr-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install golang-github-davecgh-go-xdr-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.