How To Install asn1c on Fedora 34

asn1c is An ASN.1 Compiler

Introduction

In this tutorial we learn how to install asn1c on Fedora 34.

What is asn1c

Compiles ASN.1 data structures into C source structures that can be simply marshalled to/unmarshalled from CXER, EXTENDED-XER, PER.

We can use yum or dnf to install asn1c on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install asn1c.

Install asn1c on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install asn1c using dnf by running the following command:

sudo dnf -y install asn1c

Install asn1c on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install asn1c using yum by running the following command:

sudo yum -y install asn1c

How To Uninstall asn1c on Fedora 34

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

sudo dnf remove asn1c

asn1c Package Contents on Fedora 34

/usr/bin/asn1c
/usr/bin/crfc2asn1.pl
/usr/bin/enber
/usr/bin/unber
/usr/lib/.build-id
/usr/lib/.build-id/38
/usr/lib/.build-id/38/7e30fa83b2ae0d7a5591b5aa189ed7a29e5982
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/f06b52c930a2f4c66ce3090b64dde82a5b2ec3
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/4e053a66a88b112201cf4513024c1aa63c50a9
/usr/share/asn1c
/usr/share/asn1c/ANY.c
/usr/share/asn1c/ANY.h
/usr/share/asn1c/BIT_STRING.c
/usr/share/asn1c/BIT_STRING.h
/usr/share/asn1c/BMPString.c
/usr/share/asn1c/BMPString.h
/usr/share/asn1c/BOOLEAN.c
/usr/share/asn1c/BOOLEAN.h
/usr/share/asn1c/ENUMERATED.c
/usr/share/asn1c/ENUMERATED.h
/usr/share/asn1c/GeneralString.c
/usr/share/asn1c/GeneralString.h
/usr/share/asn1c/GeneralizedTime.c
/usr/share/asn1c/GeneralizedTime.h
/usr/share/asn1c/GraphicString.c
/usr/share/asn1c/GraphicString.h
/usr/share/asn1c/IA5String.c
/usr/share/asn1c/IA5String.h
/usr/share/asn1c/INTEGER.c
/usr/share/asn1c/INTEGER.h
/usr/share/asn1c/ISO646String.c
/usr/share/asn1c/ISO646String.h
/usr/share/asn1c/NULL.c
/usr/share/asn1c/NULL.h
/usr/share/asn1c/NativeEnumerated.c
/usr/share/asn1c/NativeEnumerated.h
/usr/share/asn1c/NativeInteger.c
/usr/share/asn1c/NativeInteger.h
/usr/share/asn1c/NativeReal.c
/usr/share/asn1c/NativeReal.h
/usr/share/asn1c/NumericString.c
/usr/share/asn1c/NumericString.h
/usr/share/asn1c/OBJECT_IDENTIFIER.c
/usr/share/asn1c/OBJECT_IDENTIFIER.h
/usr/share/asn1c/OCTET_STRING.c
/usr/share/asn1c/OCTET_STRING.h
/usr/share/asn1c/ObjectDescriptor.c
/usr/share/asn1c/ObjectDescriptor.h
/usr/share/asn1c/PrintableString.c
/usr/share/asn1c/PrintableString.h
/usr/share/asn1c/README
/usr/share/asn1c/REAL.c
/usr/share/asn1c/REAL.h
/usr/share/asn1c/RELATIVE-OID.c
/usr/share/asn1c/RELATIVE-OID.h
/usr/share/asn1c/T61String.c
/usr/share/asn1c/T61String.h
/usr/share/asn1c/TeletexString.c
/usr/share/asn1c/TeletexString.h
/usr/share/asn1c/UTCTime.c
/usr/share/asn1c/UTCTime.h
/usr/share/asn1c/UTF8String.c
/usr/share/asn1c/UTF8String.h
/usr/share/asn1c/UniversalString.c
/usr/share/asn1c/UniversalString.h
/usr/share/asn1c/VideotexString.c
/usr/share/asn1c/VideotexString.h
/usr/share/asn1c/VisibleString.c
/usr/share/asn1c/VisibleString.h
/usr/share/asn1c/asn_SEQUENCE_OF.c
/usr/share/asn1c/asn_SEQUENCE_OF.h
/usr/share/asn1c/asn_SET_OF.c
/usr/share/asn1c/asn_SET_OF.h
/usr/share/asn1c/asn_application.h
/usr/share/asn1c/asn_codecs.h
/usr/share/asn1c/asn_codecs_prim.c
/usr/share/asn1c/asn_codecs_prim.h
/usr/share/asn1c/asn_internal.h
/usr/share/asn1c/asn_system.h
/usr/share/asn1c/ber_decoder.c
/usr/share/asn1c/ber_decoder.h
/usr/share/asn1c/ber_tlv_length.c
/usr/share/asn1c/ber_tlv_length.h
/usr/share/asn1c/ber_tlv_tag.c
/usr/share/asn1c/ber_tlv_tag.h
/usr/share/asn1c/constr_CHOICE.c
/usr/share/asn1c/constr_CHOICE.h
/usr/share/asn1c/constr_SEQUENCE.c
/usr/share/asn1c/constr_SEQUENCE.h
/usr/share/asn1c/constr_SEQUENCE_OF.c
/usr/share/asn1c/constr_SEQUENCE_OF.h
/usr/share/asn1c/constr_SET.c
/usr/share/asn1c/constr_SET.h
/usr/share/asn1c/constr_SET_OF.c
/usr/share/asn1c/constr_SET_OF.h
/usr/share/asn1c/constr_TYPE.c
/usr/share/asn1c/constr_TYPE.h
/usr/share/asn1c/constraints.c
/usr/share/asn1c/constraints.h
/usr/share/asn1c/converter-sample.c
/usr/share/asn1c/der_encoder.c
/usr/share/asn1c/der_encoder.h
/usr/share/asn1c/file-dependencies
/usr/share/asn1c/per_decoder.c
/usr/share/asn1c/per_decoder.h
/usr/share/asn1c/per_encoder.c
/usr/share/asn1c/per_encoder.h
/usr/share/asn1c/per_opentype.c
/usr/share/asn1c/per_opentype.h
/usr/share/asn1c/per_support.c
/usr/share/asn1c/per_support.h
/usr/share/asn1c/standard-modules
/usr/share/asn1c/standard-modules/ASN1-Object-Identifier-Module.asn1
/usr/share/asn1c/standard-modules/ASN1C-UsefulInformationObjectClasses.asn1
/usr/share/asn1c/standard-modules/README
/usr/share/asn1c/xer_decoder.c
/usr/share/asn1c/xer_decoder.h
/usr/share/asn1c/xer_encoder.c
/usr/share/asn1c/xer_encoder.h
/usr/share/asn1c/xer_support.c
/usr/share/asn1c/xer_support.h
/usr/share/doc/asn1c
/usr/share/doc/asn1c/BUGS
/usr/share/doc/asn1c/ChangeLog
/usr/share/doc/asn1c/FAQ
/usr/share/doc/asn1c/INSTALL.md
/usr/share/doc/asn1c/README.md
/usr/share/doc/asn1c/TODO
/usr/share/doc/asn1c/asn1c-quick.pdf
/usr/share/doc/asn1c/asn1c-usage.pdf
/usr/share/licenses/asn1c
/usr/share/licenses/asn1c/LICENSE
/usr/share/man/man1/asn1c.1.gz
/usr/share/man/man1/enber.1.gz
/usr/share/man/man1/unber.1.gz

References

Summary

In this tutorial we learn how to install asn1c on Fedora 34 using yum and dnf.