# Install git-credential-libsecret with Homebrew, apk, dnf, zypper

Git helper for accessing credentials via libsecret. Version 2.55.0 via Homebrew; verified 2026-06-29.

## Install

```sh
sudo av install brew:git-credential-libsecret
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install git-credential-libsecret
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add git-credential-libsecret
```

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

- dnf (92%):

```sh
sudo dnf install git-credential-libsecret
```

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

- zypper (92%):

```sh
sudo zypper install git-credential-libsecret
```

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

## Package facts

- **Package key:** brew:git-credential-libsecret
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/git-credential-libsecret>
- **Version:** 2.55.0
- **Source summary:** Git helper for accessing credentials via libsecret
- **Homepage:** <https://git-scm.com>
- **Repository:** <https://github.com/git/git>
- **Upstream docs:** <https://git-scm.com/doc/credential-helpers>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.55.0.tar.xz>
- **Last updated:** 2026-06-29T20:54:53Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- git-credential-libsecret (cli)
- git-credential-libsecret (alias)

## Dependencies

- gettext
- glib
- libsecret

## Build dependencies

- pkgconf

## 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: 2.55.0
- Package-manager updated: 2026-06-29
- Local data: ok
- Upstream repository: https://git-scm.com
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

git-credential-libsecret is Git's Linux Secret Service credential helper. It lets Git store and retrieve HTTPS credentials through libsecret-backed wallets such as GNOME Keyring or KDE Wallet instead of keeping long-lived credentials in plaintext files.

### Project history

The helper entered Git's contrib area in 2016. Its initial Git commit describes it as based on the earlier GNOME Keyring helper, replacing the deprecated, GNOME-specific libgnome-keyring library with libsecret and the XDG Secret Service API.

Later Git-side changes kept the helper aligned with Git's credential protocol. A 2017 change made it unlock locked secrets through the Secret Service interface, and 2023 changes added storage for password expiry and OAuth refresh-token attributes while preserving compatibility with older stored credentials.

### Adoption history

Git's credential-helper documentation lists git-credential-libsecret alongside macOS Keychain and Windows Credential Manager as the Linux secure persistent storage option. That placement made it part of the standard Git credential-helper ecosystem rather than a standalone password-manager integration.

Linux package managers expose it as a separate package because the helper depends on libsecret and desktop secret-service libraries that are not always part of a minimal Git build.

### How it is used

Practitioners configure it through Git's `credential.helper` setting, usually in `~/.gitconfig`, `$XDG_CONFIG_HOME/git/config`, or a repository `.git/config`. After configuration, Git invokes `git credential-libsecret` through the credential-helper protocol during HTTP authentication.

Its use case is workstation Git over HTTPS: the first authentication stores a username and password, personal access token, or generated token in the desktop secret service, and later fetch, pull, and push operations retrieve it without prompting.

### Why package nerds care

For package maintainers, git-credential-libsecret is a small but important split from the main Git package. It is tied to desktop-secret-service dependencies, so distributing it separately keeps headless or minimal Git installs lean while giving Linux desktop users OS-integrated credential storage.

It also illustrates Git's extension model: a helper in `contrib/credential` can become a distro-facing executable without changing Git's core credential protocol.

### Timeline

- 2016: Git adds `contrib/credential/libsecret` as a libsecret replacement for the GNOME Keyring helper.
- 2017: The helper learns to unlock locked Secret Service items when reading credentials.
- 2023: The helper stores Git credential attributes such as password expiry and OAuth refresh tokens in a backwards-compatible secret format.
- 2025: Git fixes compilation of the libsecret helper in contrib.

### Related projects

- git-credential-cache and git-credential-store are Git's built-in generic helpers; libsecret fills the Linux secure-storage role.
- git-credential-osxkeychain and git-credential-wincred are the analogous platform-specific helpers for macOS and Windows.
- Git Credential Manager and git-credential-oauth are related helpers that generate or manage credentials through broader authentication workflows.

### Sources

- <https://git-scm.com/doc/credential-helpers lists git-credential-libsecret as the Linux secure persistent storage helper.>
- <https://git-scm.com/docs/gitcredentials documents Git credential helpers, configuration, and helper invocation semantics.>
- <https://github.com/git/git documents the upstream Git source history for the libsecret helper.>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.gitconfig, $XDG_CONFIG_HOME/git/config, .git/config
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** git-credential-libsecret
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- apk - git-credential-libsecret - 2.54.0-r0: normalized package name match | Alpine Linux edge package indexes: git-credential-libsecret from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | libsecret-based credential helper | https://www.git-scm.com/
- dnf - git-credential-libsecret - 2.54.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: git-credential-libsecret from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Git helper for accessing credentials via libsecret | https://git-scm.com/
- zypper - git-credential-libsecret - 2.54.0-2.1: normalized package name match | openSUSE Tumbleweed package metadata: git-credential-libsecret from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Git credential backend using libsecret to access keyring | https://git-scm.com/


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [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.
- [libsecret](https://www.automicvault.com/pkg/brew/libsecret/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [git](https://www.automicvault.com/pkg/brew/git/) - Shares the same upstream homepage.
- [git-gui](https://www.automicvault.com/pkg/brew/git-gui/) - Shares the same upstream homepage.
- [git-svn](https://www.automicvault.com/pkg/brew/git-svn/) - Shares the same upstream homepage.
- [git-credential-oauth](https://www.automicvault.com/pkg/brew/git-credential-oauth/) - Shares av.db curated category or tags: cli, credential-management, credentials, git, security.
- [keyring](https://www.automicvault.com/pkg/brew/keyring/) - Shares av.db curated category or tags: cli, credential-management, credentials, security.
- [trufflehog](https://www.automicvault.com/pkg/brew/trufflehog/) - Shares av.db curated category or tags: cli, credentials, git, security.
- [git-crypt](https://www.automicvault.com/pkg/brew/git-crypt/) - Shares av.db curated category or tags: cli, git, security.
- [git-hound](https://www.automicvault.com/pkg/brew/git-hound/) - Shares av.db curated category or tags: cli, git, security.
- [git-remote-gcrypt](https://www.automicvault.com/pkg/brew/git-remote-gcrypt/) - Shares av.db curated category or tags: cli, git, security.
- [git-secrets](https://www.automicvault.com/pkg/brew/git-secrets/) - Shares av.db curated category or tags: cli, git, security.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
