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-7.6 systemd platform.

Package Information

libsecret Dependencies





GTK-Doc-1.20 and docbook-xml-4.5, docbook-xsl-1.78.1, and libxslt-1.1.28 (to build manual pages)

Optional (Required for the testsuite)

D-Bus Python-1.2.0, Gjs-1.40.1, and PyGObject-2.28.6

Runtime Dependency




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

User Notes:

Installation of libsecret

Install libsecret by running the following commands:

./configure --prefix=/usr --disable-static &&

Now, as the root user:

make install

To test the results, issue: make -k check after the package has been installed. The test suite should be run from a local GUI session started with dbus-launch. Some tests might still fail for unknown reasons.

Command Explanations

--disable-static: This switch prevents installation of static versions of the libraries.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.

--disable-manpages: Use this switch if you have not installed libxslt-1.1.28 and DocBook packages.

--disable-gcrypt: Use this switch if you have not installed the recommended dependency of libgcrypt-1.6.2.


Installed Programs: secret-tool
Installed Libraries:
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 2014-08-23 13:42:03 -0700