How To Install dumpasn1 on Ubuntu 20.04

In this tutorial we learn how to install dumpasn1 on Ubuntu 20.04. dumpasn1 is ASN.1 object dump program

Introduction

In this tutorial we learn how to install dumpasn1 on Ubuntu 20.04.

What is dumpasn1

dumpasn1 is:

An ASN.1 object dump program which will dump data encoded using any of the ASN.1 encoding rules in a variety of user-specified formats.

dumpasn1 employs a user-editable configuration file dumpasn1.cfg which provides information on ASN.1 object identifiers. Currently it covers all known security-related OIDs.

There are three methods to install dumpasn1 on Ubuntu 20.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 dumpasn1 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install dumpasn1 using apt-get by running the following command:

sudo apt-get -y install dumpasn1

Install dumpasn1 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dumpasn1 using apt by running the following command:

sudo apt -y install dumpasn1

Install dumpasn1 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 dumpasn1 using aptitude by running the following command:

sudo aptitude -y install dumpasn1

How To Uninstall dumpasn1 on Ubuntu 20.04

To uninstall only the dumpasn1 package we can use the following command:

sudo apt-get remove dumpasn1

Uninstall dumpasn1 And Its Dependencies

To uninstall dumpasn1 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove dumpasn1

Remove dumpasn1 Configurations and Data

To remove dumpasn1 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge dumpasn1

Remove dumpasn1 configuration, data, and all of its dependencies

We can use the following command to remove dumpasn1 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dumpasn1

References

Summary

In this tutorial we learn how to install dumpasn1 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.