# Install libsecret with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Library for storing/retrieving passwords and other secrets. Version 0.21.7 via Homebrew; verified 2026-05-14.

## Install

```sh
sudo av install brew:libsecret
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libsecret
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libsecret
```

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

### Linux

- apk (92%):

```sh
sudo apk add libsecret
```

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

- Debian apt (92%):

```sh
sudo apt install gir1.2-secret-1
```

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

- dnf (92%):

```sh
sudo dnf install libsecret
```

  Evidence: Fedora Rawhide package metadata: libsecret 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#libsecret
```

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

- pacman (92%):

```sh
sudo pacman -S libsecret
```

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

- zypper (92%):

```sh
sudo zypper install libsecret-1-0
```

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

## Package facts

- **Package key:** brew:libsecret
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libsecret>
- **Version:** 0.21.7
- **Source summary:** Library for storing/retrieving passwords and other secrets
- **Homepage:** <https://wiki.gnome.org/Projects/Libsecret>
- **Repository:** <https://gitlab.gnome.org/GNOME/libsecret>
- **Upstream docs:** <https://gnome.pages.gitlab.gnome.org/libsecret>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://download.gnome.org/sources/libsecret/0.21/libsecret-0.21.7.tar.xz>
- **Last updated:** 2026-05-14T18:00:35-04:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- secret-tool (cli)
- secret-tool (alias)

## Dependencies

- gettext
- glib
- libgcrypt

## Build dependencies

- docbook-xsl
- gettext
- gobject-introspection
- meson
- ninja
- pkgconf
- vala

## Uses from macOS

- expat

## Install behavior

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

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.21.7
- Package-manager updated: 2026-05-14
- Local data: ok
- Upstream repository: https://wiki.gnome.org/Projects/Libsecret
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

libsecret is GNOME's GObject-based client library for the freedesktop.org Secret Service D-Bus API. It is the package behind many Linux desktop applications that need to store passwords, tokens, and other secrets without binding directly to a particular keyring implementation.

### Project history

The freedesktop.org Secret Service specification was authored by GNOME Keyring and KWallet developers and describes collections, items, sessions, prompts, and D-Bus interfaces for desktop secret storage. libsecret implements the client side of that model for GNOME-style C, GObject Introspection, JavaScript, Python, and Vala users.

The GNOME API documentation identifies libsecret as a Secret Service D-Bus client library authored by Stef Walter, Daiki Ueno, and Niels De Graef. GitLab tag history shows the project publishing 0.1 in March 2012 and reaching the 0.20 and 0.21 series in the 2020s.

### Adoption history

libsecret's adoption is tied to the move from application-specific password files toward desktop keyring services reachable over D-Bus. It gives GNOME applications, command-line helpers such as secret-tool, and language bindings a shared library interface over the Secret Service API.

### How it is used

Applications define schemas and attributes, then store, look up, and delete secrets through the Secret Service. The official usage documentation shows pkg-config integration for C, imports through GObject Introspection for JavaScript and Python, and Vala package usage.

### Why package nerds care

libsecret is a small but sensitive dependency: it bridges package-managed applications to session keyrings without each package carrying its own password-storage backend. It is also a common build dependency for tools that only need secret storage on desktop Linux.

### Timeline

- 2008-2011: The Secret Service API copyright period covers the specification authorship window.
- 2012: libsecret 0.1 was tagged in March.
- 2020: libsecret 0.20.0 was tagged in January.
- 2023: libsecret 0.21.0 was tagged in August.
- 2025: libsecret 0.21.7 was tagged in March.

### Related projects

- Related projects include GNOME Keyring, KWallet, D-Bus, GObject Introspection, freedesktop.org Secret Service, and secret-tool.

### Sources

- <https://gitlab.gnome.org/GNOME/libsecret>
- <https://gnome.pages.gitlab.gnome.org/libsecret>
- <https://gnome.pages.gitlab.gnome.org/libsecret/libsecret-using.html>
- <https://specifications.freedesktop.org/secret-service-spec/latest/>


## 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:** libsecret
- **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

- Debian apt - gir1.2-secret-1 - 0.21.7-1: normalized package name match | Debian stable package indexes: gir1.2-secret-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Secret store (GObject-Introspection) | https://wiki.gnome.org/Projects/Libsecret
- Debian apt - libsecret-1-0 - 0.21.7-1: normalized package name match | Debian stable package indexes: libsecret-1-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Secret store | https://wiki.gnome.org/Projects/Libsecret
- Debian apt - libsecret-1-dev - 0.21.7-1: normalized package name match | Debian stable package indexes: libsecret-1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Secret store (development files) | https://wiki.gnome.org/Projects/Libsecret
- Debian apt - libsecret-common - 0.21.7-1: normalized package name match | Debian stable package indexes: libsecret-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Secret store (common files) | https://wiki.gnome.org/Projects/Libsecret
- Debian apt - libsecret-tools - 0.21.7-1: normalized package name match | Debian stable package indexes: libsecret-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for storing and retrieving GObject passwords | https://wiki.gnome.org/Projects/Libsecret
- Nix - libsecret: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libsecret/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-secret-1 - 0.21.4-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-secret-1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Secret store (GObject-Introspection) | https://wiki.gnome.org/Projects/Libsecret
- Ubuntu apt - libsecret-1-0 - 0.21.4-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsecret-1-0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Secret store | https://wiki.gnome.org/Projects/Libsecret
- Ubuntu apt - libsecret-1-dev - 0.21.4-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsecret-1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Secret store (development files) | https://wiki.gnome.org/Projects/Libsecret
- Ubuntu apt - libsecret-common - 0.21.4-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsecret-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Secret store (common files) | https://wiki.gnome.org/Projects/Libsecret
- Ubuntu apt - libsecret-tools - 0.21.4-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libsecret-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for storing and retrieving GObject passwords | https://wiki.gnome.org/Projects/Libsecret
- apk - libsecret - 0.21.7-r0: normalized package name match | Alpine Linux edge package indexes: libsecret from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for storing and retrieving passwords and other secrets | https://gnome.pages.gitlab.gnome.org/libsecret
- apk - libsecret-dev - 0.21.7-r0: normalized package name match | Alpine Linux edge package indexes: libsecret-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for storing and retrieving passwords and other secrets (development files) | https://gnome.pages.gitlab.gnome.org/libsecret
- apk - libsecret-doc - 0.21.7-r0: normalized package name match | Alpine Linux edge package indexes: libsecret-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for storing and retrieving passwords and other secrets (documentation) | https://gnome.pages.gitlab.gnome.org/libsecret
- apk - libsecret-lang - 0.21.7-r0: normalized package name match | Alpine Linux edge package indexes: libsecret-lang from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Languages for package libsecret | https://gnome.pages.gitlab.gnome.org/libsecret
- apk - libsecret-static - 0.21.7-r0: normalized package name match | Alpine Linux edge package indexes: libsecret-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for storing and retrieving passwords and other secrets (static library) | https://gnome.pages.gitlab.gnome.org/libsecret


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Documentation packages](https://www.automicvault.com/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [libgcrypt](https://www.automicvault.com/pkg/brew/libgcrypt/) - Runtime dependency declared by Homebrew.
- [docbook-xsl](https://www.automicvault.com/pkg/brew/docbook-xsl/) - Build dependency declared by Homebrew.
- [gobject-introspection](https://www.automicvault.com/pkg/brew/gobject-introspection/) - Build dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [evince](https://www.automicvault.com/pkg/brew/evince/) - Popular package that depends on this formula.
- [git-credential-libsecret](https://www.automicvault.com/pkg/brew/git-credential-libsecret/) - Popular package that depends on this formula.
- [gitg](https://www.automicvault.com/pkg/brew/gitg/) - Popular package that depends on this formula.
- [webkitgtk](https://www.automicvault.com/pkg/brew/webkitgtk/) - Popular package that depends on this formula.
- [git-credential-oauth](https://www.automicvault.com/pkg/brew/git-credential-oauth/) - Shares av.db curated category or tags: cli, credential-management, credentials, security.
- [keyring](https://www.automicvault.com/pkg/brew/keyring/) - Shares av.db curated category or tags: cli, credential-management, credentials, security.
- [envchain](https://www.automicvault.com/pkg/brew/envchain/) - Shares av.db curated category or tags: cli, credentials, secret-service, security.
- [keychain](https://www.automicvault.com/pkg/brew/keychain/) - Shares av.db curated category or tags: cli, credential-management, security.
- [leapp-cli](https://www.automicvault.com/pkg/brew/leapp-cli/) - Shares av.db curated category or tags: cli, credential-management, security.
- [credstash](https://www.automicvault.com/pkg/brew/credstash/) - Shares av.db curated category or tags: cli, credentials, security.
- [enpass-cli](https://www.automicvault.com/pkg/brew/enpass-cli/) - Shares av.db curated category or tags: cli, credentials, security.
- [gnome-recipes](https://www.automicvault.com/pkg/brew/gnome-recipes/) - Local package facts share a topical domain. Shared terms: cli, gettext, glib, gnome, management.

## Combined YAML source

View the package source record on GitHub. [combined/libsecret.yml](https://github.com/automic-vault/db/blob/main/combined/libsecret.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
