# Install libselinux

SELinux library and simple utilities. Version 3.10 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:libselinux
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libselinux
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libselinux
```

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

- Debian apt (92%):

```sh
sudo apt install libselinux1
```

  Evidence: Debian stable package indexes: libselinux1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install libselinux
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#libselinux
```

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

- zypper (92%):

```sh
sudo zypper install libselinux-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libselinux-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## Package Facts

- **Package key:** brew:libselinux
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/libselinux>
- **Version:** 3.10
- **Source summary:** SELinux library and simple utilities
- **Homepage:** <https://github.com/SELinuxProject/selinux>
- **Repository:** <https://github.com/SELinuxProject/selinux>
- **Upstream docs:** <https://github.com/SELinuxProject/selinux/wiki>
- **License:** LicenseRef-Homebrew-public-domain
- **Source archive:** <https://github.com/SELinuxProject/selinux/releases/download/3.10/libselinux-3.10.tar.gz>
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- avcstat (cli)
- compute_av (cli)
- compute_create (cli)
- compute_member (cli)
- compute_relabel (cli)
- getconlist (cli)
- getdefaultcon (cli)
- getenforce (cli)
- getfilecon (cli)
- getpidcon (cli)
- getpidprevcon (cli)
- getpolicyload (cli)
- getsebool (cli)
- getseuser (cli)
- matchpathcon (cli)
- policyvers (cli)
- sefcontext_compile (cli)
- selabel_compare (cli)
- selabel_digest (cli)
- selabel_get_digests_all_partial_matches (cli)
- selabel_lookup (cli)
- selabel_lookup_best_match (cli)
- selabel_partial_match (cli)
- selinux_check_access (cli)
- selinux_check_securetty_context (cli)
- selinuxenabled (cli)
- selinuxexeccon (cli)
- setenforce (cli)
- setfilecon (cli)
- togglesebool (cli)
- validatetrans (cli)
- avcstat (alias)
- compute_av (alias)
- compute_create (alias)
- compute_member (alias)
- compute_relabel (alias)
- getconlist (alias)
- getdefaultcon (alias)
- getenforce (alias)
- getfilecon (alias)
- getpidcon (alias)
- getpidprevcon (alias)
- getpolicyload (alias)
- getsebool (alias)
- getseuser (alias)
- matchpathcon (alias)
- policyvers (alias)
- sefcontext_compile (alias)
- selabel_compare (alias)
- selabel_digest (alias)
- selabel_get_digests_all_partial_matches (alias)
- selabel_lookup (alias)
- selabel_lookup_best_match (alias)
- selabel_partial_match (alias)
- selinux_check_access (alias)
- selinux_check_securetty_context (alias)
- selinuxenabled (alias)
- selinuxexeccon (alias)
- setenforce (alias)
- setfilecon (alias)
- togglesebool (alias)
- validatetrans (alias)

## Dependencies

- libsepol
- pcre2

## Build Dependencies

- pkgconf

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 3.10
- Local data status: ok
- Upstream repository: https://github.com/SELinuxProject/selinux
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.

## 安全说明

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:** libselinux
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** linux
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - libselinux1 - 3.8.1-1: normalized package name match | Debian stable package indexes: libselinux1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SELinux runtime shared libraries | https://github.com/SELinuxProject
- Debian apt - libselinux1-dev - 3.8.1-1: normalized package name match | Debian stable package indexes: libselinux1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SELinux development headers | https://github.com/SELinuxProject
- Debian apt - python3-selinux - 3.8.1-1: normalized package name match | Debian stable package indexes: python3-selinux from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python3 bindings to SELinux shared libraries | https://github.com/SELinuxProject
- Debian apt - ruby-selinux - 3.8.1-1: normalized package name match | Debian stable package indexes: ruby-selinux from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Ruby bindings to SELinux shared libraries | https://github.com/SELinuxProject
- Debian apt - selinux-utils - 3.8.1-1: normalized package name match | Debian stable package indexes: selinux-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SELinux utility programs | https://github.com/SELinuxProject
- Nix - libselinux: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libselinux/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libselinux1 - 3.5-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libselinux1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | SELinux runtime shared libraries | https://selinuxproject.org
- Ubuntu apt - libselinux1-dev - 3.5-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libselinux1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | SELinux development headers | https://selinuxproject.org
- Ubuntu apt - python3-selinux - 3.5-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-selinux from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python3 bindings to SELinux shared libraries | https://selinuxproject.org
- Ubuntu apt - ruby-selinux - 3.5-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: ruby-selinux from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Ruby bindings to SELinux shared libraries | https://selinuxproject.org
- Ubuntu apt - selinux-utils - 3.5-2ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: selinux-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SELinux utility programs | https://selinuxproject.org
- apk - libselinux - 3.10-r1: normalized package name match | Alpine Linux edge package indexes: libselinux from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SELinux library and simple utilities | https://github.com/SELinuxProject/selinux/wiki
- apk - libselinux-dev - 3.10-r1: normalized package name match | Alpine Linux edge package indexes: libselinux-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SELinux library and simple utilities (development files) | https://github.com/SELinuxProject/selinux/wiki
- apk - libselinux-doc - 3.10-r1: normalized package name match | Alpine Linux edge package indexes: libselinux-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SELinux library and simple utilities (documentation) | https://github.com/SELinuxProject/selinux/wiki
- apk - libselinux-static - 3.10-r1: normalized package name match | Alpine Linux edge package indexes: libselinux-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SELinux library and simple utilities (static library) | https://github.com/SELinuxProject/selinux/wiki
- apk - libselinux-utils - 3.10-r1: normalized package name match | Alpine Linux edge package indexes: libselinux-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | SELinux libselinux utilies | https://github.com/SELinuxProject/selinux/wiki


## Related Links

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [pcre2](https://www.automicvault.com/zh-hans/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [libsepol](https://www.automicvault.com/zh-hans/pkg/brew/libsepol/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [knock](https://www.automicvault.com/zh-hans/pkg/brew/knock/) - Shares av.db curated category or tags: access-control, cli, security.
- [fwknop](https://www.automicvault.com/zh-hans/pkg/brew/fwknop/) - Shares av.db curated category or tags: access-control, cli, security.
- [rush](https://www.automicvault.com/zh-hans/pkg/brew/rush/) - Shares av.db curated category or tags: access-control, cli, security.
- [teleport](https://www.automicvault.com/zh-hans/pkg/brew/teleport/) - Shares av.db curated category or tags: access-control, cli, security.
- [openfga](https://www.automicvault.com/zh-hans/pkg/brew/openfga/) - Shares av.db curated category or tags: access-control, cli, security.
- [spicedb](https://www.automicvault.com/zh-hans/pkg/brew/spicedb/) - Shares av.db curated category or tags: access-control, cli, security.
- [pomerium](https://www.automicvault.com/zh-hans/pkg/brew/pomerium/) - Shares av.db curated category or tags: access-control, cli, security.
- [hydra](https://www.automicvault.com/zh-hans/pkg/brew/hydra/) - Security-sensitive metadata or terminology overlaps. Shared terms: cli, pcre2, security.

## Sources

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