# Install libtasn1 with Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper

ASN.1 structure parser library. Version 4.21.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:libtasn1
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libtasn1
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libtasn1
```

  Evidence: MacPorts ports tree: devel/libtasn1/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libtasn1
```

  Evidence: Alpine Linux edge package indexes: libtasn1 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libtasn1
```

  Evidence: Fedora Rawhide package metadata: libtasn1 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libtasn1
```

  Evidence: nixpkgs package indexes: pkgs/by-name/li/libtasn1/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libtasn1
```

  Evidence: Arch Linux sync databases: libtasn1 from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libtasn1-6
```

  Evidence: openSUSE Tumbleweed package metadata: libtasn1-6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:libtasn1
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libtasn1>
- **Version:** 4.21.0
- **Source summary:** ASN.1 structure parser library
- **Homepage:** <https://www.gnu.org/software/libtasn1/>
- **Repository:** <https://gitlab.com/gnutls/libtasn1>
- **Upstream docs:** <https://www.gnu.org/software/libtasn1>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://ftpmirror.gnu.org/gnu/libtasn1/libtasn1-4.21.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- asn1Coding (cli)
- asn1Decoding (cli)
- asn1Parser (cli)
- asn1Coding (alias)
- asn1Decoding (alias)
- asn1Parser (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.21.0
- Local data: ok
- Upstream repository: https://www.gnu.org/software/libtasn1/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GNU Libtasn1 is a small ASN.1 and DER library used in security-sensitive C software. It matters to package managers because it sits under TLS, PKCS#11, certificate, and identity stacks while trying to stay portable and dependency-light.

### Project history

The GNU project page says Libtasn1 was originally written by Fabio Fiorina and later maintained as a GNU package. The NEWS file records an initial 0.1.0 release, a 0.1.1 rename to libtasn1 with LGPL licensing, and a 3.0 release on October 28, 2012 that hid internal structures and normalized type names.

The manual defines the package as a library for Abstract Syntax Notation One and Distinguished Encoding Rules manipulation. It emphasizes online ASN.1 structure management without C code generation, optional offline C array generation, DER support, no global state, thread safety, and portability across Unix-like systems and Windows.

### Adoption history

GNU identifies Libtasn1 as the ASN.1 library used by GnuTLS, p11-kit, and other packages. That dependency path made it part of distribution base layers for TLS and certificate-processing stacks, which explains broad packaging across Alpine, Homebrew, Fedora, MacPorts, Nix, Arch, and openSUSE in the input metadata.

The project also reflects modern distro maintenance pressure: the NEWS file includes repeated hardening and fuzzing-related fixes, oss-fuzz references, reproducible tarball work in 4.20.0, and a security fix for CVE-2025-13151 in 4.21.0.

### How it is used

Applications use the library to parse ASN.1 definitions, build ASN.1 structures, and encode or decode DER data. The command-line tools asn1Parser, asn1Coding, and asn1Decoding expose those workflows for generating C arrays, encoding assignment files, and decoding binary DER input.

Its common role is not as an end-user utility but as a low-level dependency for software that needs strict certificate, key, or protocol data handling.

### Why package nerds care

Libtasn1 is a classic small security dependency: boring when it works, very visible when it has a parser bug. Package maintainers care about it because ABI stability, fuzzing fixes, CVEs, and reproducible source archives ripple into TLS and authentication stacks.

Its GNU packaging also gives distributions familiar release signing, mailing lists, manuals, Autotools build machinery, and a GitLab development home.

### Timeline

- 2002: The NEWS file copyright range begins for GNU Libtasn1.
- 0.1.0: Initial release.
- 0.1.1: The project is renamed to libtasn1 and relicensed under the GNU Lesser GPL.
- 2012: Release 3.0 hides internal structures and renames public types for consistency.
- 2014: Release 4.0 adds DER decoding improvements and new APIs.
- 2019: Release 4.15.0 switches to semantic versioning.
- 2025: Release 4.20.0 adds reproducible release tarballs.
- 2026: Release 4.21.0 fixes CVE-2025-13151 and renames NEWS to NEWS.md.

### Related projects

- GnuTLS and p11-kit are explicitly named GNU-page consumers of Libtasn1. ASN.1 and DER standards, X.509 certificate tooling, and PKCS-related libraries are adjacent parts of the same packaging ecosystem.

### Sources

- <https://gitlab.com/gnutls/libtasn1>
- <https://gitlab.com/gnutls/libtasn1/-/raw/master/NEWS.md>
- <https://gitlab.com/gnutls/libtasn1/-/raw/master/README.md>
- <https://www.gnu.org/software/libtasn1/>
- <https://www.gnu.org/software/libtasn1/manual/libtasn1.html>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libtasn1
- **Aliases:** libtasn
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - libtasn1: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libtasn1/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - libtasn1 - 4.21.0-r0: normalized package name match | Alpine Linux edge package indexes: libtasn1 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The ASN.1 library used in GNUTLS | https://www.gnu.org/software/gnutls/
- apk - libtasn1-dev - 4.21.0-r0: normalized package name match | Alpine Linux edge package indexes: libtasn1-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The ASN.1 library used in GNUTLS (development files) | https://www.gnu.org/software/gnutls/
- apk - libtasn1-doc - 4.21.0-r0: normalized package name match | Alpine Linux edge package indexes: libtasn1-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The ASN.1 library used in GNUTLS (documentation) | https://www.gnu.org/software/gnutls/
- apk - libtasn1-progs - 4.21.0-r0: normalized package name match | Alpine Linux edge package indexes: libtasn1-progs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The ASN.1 library used in GNUTLS (utilities) | https://www.gnu.org/software/gnutls/
- dnf - libtasn1 - 4.21.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: libtasn1 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The ASN.1 library used in GNUTLS | https://www.gnu.org/software/libtasn1/
- dnf - libtasn1-devel - 4.21.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: libtasn1-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Files for development of applications which will use libtasn1 | https://www.gnu.org/software/libtasn1/
- dnf - libtasn1-tools - 4.21.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: libtasn1-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Some ASN.1 tools | https://www.gnu.org/software/libtasn1/
- pacman - libtasn1 - 4.21.0-1: normalized package name match | Arch Linux sync databases: libtasn1 from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | The ASN.1 library used in GNUTLS | https://www.gnu.org/software/libtasn1/
- zypper - libtasn1-6 - 4.21.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libtasn1-6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | ASN.1 parsing library | https://www.gnu.org/software/libtasn1/
- zypper - libtasn1-6-32bit - 4.21.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libtasn1-6-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | ASN.1 parsing library | https://www.gnu.org/software/libtasn1/
- zypper - libtasn1-devel - 4.21.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libtasn1-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the ASN.1 parsing library | https://www.gnu.org/software/libtasn1/
- zypper - libtasn1-devel-32bit - 4.21.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libtasn1-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for the ASN.1 parsing library | https://www.gnu.org/software/libtasn1/
- zypper - libtasn1-tools - 4.21.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libtasn1-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | ASN.1 parsing tools | https://www.gnu.org/software/libtasn1/
- MacPorts - libtasn1: normalized package name match | MacPorts ports tree: devel/libtasn1/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [gnutls](https://www.automicvault.com/pkg/brew/gnutls/) - Popular package that depends on this formula.
- [libimobiledevice](https://www.automicvault.com/pkg/brew/libimobiledevice/) - Popular package that depends on this formula.
- [p11-kit](https://www.automicvault.com/pkg/brew/p11-kit/) - Popular package that depends on this formula.
- [samba](https://www.automicvault.com/pkg/brew/samba/) - Popular package that depends on this formula.
- [swtpm](https://www.automicvault.com/pkg/brew/swtpm/) - Popular package that depends on this formula.
- [webkitgtk](https://www.automicvault.com/pkg/brew/webkitgtk/) - Popular package that depends on this formula.
- [libsql](https://www.automicvault.com/pkg/brew/libsql/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libstatgrab](https://www.automicvault.com/pkg/brew/libstatgrab/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libstxxl](https://www.automicvault.com/pkg/brew/libstxxl/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libsvm](https://www.automicvault.com/pkg/brew/libsvm/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtar](https://www.automicvault.com/pkg/brew/libtar/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtecla](https://www.automicvault.com/pkg/brew/libtecla/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtensorflow](https://www.automicvault.com/pkg/brew/libtensorflow/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtiff](https://www.automicvault.com/pkg/brew/libtiff/) - Shares av.db curated category or tags: cli, not-completed, other.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Local package facts share a topical domain. Shared terms: cli, completed, not, not-completed, other.

## Combined YAML source

View the package source record on GitHub. [combined/libtasn1.yml](https://github.com/automic-vault/db/blob/main/combined/libtasn1.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
