How To Install snacc on Debian 10
Introduction
In this tutorial we learn how to install snacc
on Debian 10.
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 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 snacc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install snacc
using apt-get
by running the following command:
sudo apt-get -y install snacc
Install snacc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install snacc
using apt
by running the following command:
sudo apt -y install snacc
Install snacc 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 snacc
using aptitude
by running the following command:
sudo aptitude -y install snacc
How To Uninstall snacc on Debian 10
To uninstall only the snacc
package we can use the following command:
sudo apt-get remove snacc
Uninstall snacc And Its Dependencies
To uninstall snacc
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove snacc
Remove snacc Configurations and Data
To remove snacc
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge snacc
Remove 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 snacc
Dependencies
snacc have the following dependencies:
References
Summary
In this tutorial we learn how to install snacc
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.