Introduction to libsecret

The libsecret package contains a GObject based library for accessing the Secret Service API.

This package is known to build and work properly using an LFS-10.0 platform.

Package Information

libsecret Dependencies





GTK-Doc-1.32 and docbook-xml-4.5, docbook-xsl-1.79.2, libxslt-1.1.34 (to build manual pages), and Valgrind-3.16.1 (can be used in tests)

Optional (Required for the testsuite)

D-Bus Python-1.2.16, Gjs-1.64.4, and PyGObject-3.36.1 (Python 3 module)

Runtime Dependency




Any package requiring libsecret expects GNOME Keyring to be present at runtime.

User Notes:

Installation of libsecret

Install libsecret by running the following commands:

mkdir bld &&
cd bld &&

meson --prefix=/usr -Dgtk_doc=false .. &&

Now, as the root user:

ninja install

To test the results, issue: ninja test, after the package is installed. The test suite should be run from a local GUI session started with dbus-launch.

Command Explanations

-Dgtk_doc=false: Remove this if you have GTK-Doc-1.32 installed and want to rebuild the documentation with it.

-Dmanpage=false: Use this switch if you have not installed libxslt-1.1.34 and DocBook packages.

-Dgcrypt=false: Use this switch if you have not installed the recommended dependency of libgcrypt-1.8.6.


Installed Program: secret-tool
Installed Library:
Installed Directories: /usr/include/libsecret-1 and /usr/share/gtk-doc/html/libsecret-1

Short Descriptions


is a command line tool that can be used to store and retrieve passwords.

contains the libsecret API functions.

Last updated on 2020-08-19 12:37:56 -0700