How To Install golang-github-spf13-afero-dev on Debian 10

Learn how to install golang-github-spf13-afero-dev on Debian 10 with this tutorial. golang-github-spf13-afero-dev is FileSystem Abstraction System for Go

Introduction

In this tutorial we learn how to install golang-github-spf13-afero-dev on Debian 10.

What is golang-github-spf13-afero-dev

golang-github-spf13-afero-dev is:

Package Afero provides types and methods for interacting with the filesystem as an abstraction layer for the Go Programming Language.

It provides a few implementations that are largely interoperable. One that uses the operating system filesystem, one that uses memory to store files (cross platform) and an interface that should be implemented if you want to provide your own filesystem.

It is suitable for use in any situation where you would consider using the OS package as it provides an additional abstraction that makes it easy to use a memory-backed file system during testing. It also adds support for the http filesystem for full interoperability.

Afero has an exceptionally clean interface and simple design without needless constructors or initialization methods.

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

sudo apt-get -y install golang-github-spf13-afero-dev

Install golang-github-spf13-afero-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install golang-github-spf13-afero-dev using apt by running the following command:

sudo apt -y install golang-github-spf13-afero-dev

Install golang-github-spf13-afero-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-spf13-afero-dev using aptitude by running the following command:

sudo aptitude -y install golang-github-spf13-afero-dev

How To Uninstall golang-github-spf13-afero-dev on Debian 10

To uninstall only the golang-github-spf13-afero-dev package we can use the following command:

sudo apt-get remove golang-github-spf13-afero-dev

Uninstall golang-github-spf13-afero-dev And Its Dependencies

To uninstall golang-github-spf13-afero-dev and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove golang-github-spf13-afero-dev

Remove golang-github-spf13-afero-dev Configurations and Data

To remove golang-github-spf13-afero-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge golang-github-spf13-afero-dev

Remove golang-github-spf13-afero-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge golang-github-spf13-afero-dev

Dependencies

golang-github-spf13-afero-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install golang-github-spf13-afero-dev package on Debian 10 using different package management tools: apt, apt-get and aptitude.