How To Install snacc on Kali Linux
Introduction
In this tutorial we learn how to install snacc on Kali Linux.
What is snacc
snacc is:
Snacc is short for “Sample Neufeld ASN.1 to C Compiler” and ASN.1 stands for Abstract Syntax Notation One (ITU-T X.208/ISO 8824). Snacc supports a subset of ASN.1 1988. If you need features of ASN.1 1992 or later, snacc is not for you.
Given an ASN.1 source file(s) snacc can produce:
- C routines for BER encoding, decoding, printing and freeing.
- C++ routines for BER encoding, decoding, and printing.
- A type table that can be used with C driver routines for BER encoding, decoding, printing and freeing.
If you want to build snacc based applications, you want to install the libsnacc-dev package, too. Your application will then depend on the snacc libraries, you find in the libsnacc0c2 package.
There are three methods to install snacc on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install snacc Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install snacc using apt-get by running the following command:
sudo apt-get -y install snaccInstall snacc Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install snacc using apt by running the following command:
sudo apt -y install snaccInstall snacc Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install snacc using aptitude by running the following command:
sudo aptitude -y install snaccHow To Uninstall snacc on Kali Linux
To uninstall only the snacc package we can use the following command:
sudo apt-get remove snaccUninstall snacc And Its Dependencies
To uninstall snacc and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove snaccRemove snacc Configurations and Data
To remove snacc configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge snaccRemove snacc configuration, data, and all of its dependencies
We can use the following command to remove snacc configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge snaccDependencies
snacc have the following dependencies:
References
Summary
In this tutorial we learn how to install snacc package on Kali Linux using different package management tools: apt, apt-get and aptitude.