The Gcr package contains libraries used for displaying certificates and accessing key stores. It also provides the viewer for crypto files on the GNOME Desktop.
![[Note]](../images/note.png) 
          Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://download.gnome.org/sources/gcr/4.4/gcr-4.4.0.1.tar.xz
Download MD5 sum: 01da4445b5b16801c6dcc7d8945b4cc4
Download size: 728 KB
Estimated disk space required: 26 MB (with tests)
Estimated build time: 0.1 SBU (with tests; both using parallelism=4)
GLib-2.86.1 (GObject Introspection recommended), libgcrypt-1.11.2, p11-kit-0.25.10
GnuPG-2.4.8, GTK-4.20.2, libsecret-0.21.7, libxslt-1.1.43, and Vala-0.56.18
Gi-DocGen-2025.5, GnuTLS-3.8.10, OpenSSH-10.2p1, and Valgrind-3.26.0
![[Note]](../images/note.png) 
          Both gcr-3 and gcr-4 are coinstallable. This version of the package is used to support GTK-4 applications, such as gnome-shell-48.4 and Epiphany-48.5.
Install Gcr by running the following commands:
mkdir build &&
cd    build &&
meson setup --prefix=/usr       \
            --buildtype=release \
            -D gtk_doc=false    \
            -D ssh_agent=false  \
            ..                  &&
ninja
        If you have Gi-DocGen-2025.5 installed and wish to build the API documentation for this package, issue:
sed -e "/install_dir/s@,\$@ / 'gcr-4.4.0.1'&@" \
    -i ../docs/*/meson.build                 &&
meson configure -D gtk_doc=true              &&
ninja
        To test the results, issue: ninja test. The tests must be run from an X Terminal or similar.
          Now, as the root user:
        
ninja install
          --buildtype=release:
          Specify a buildtype suitable for stable releases of the package, as
          the default may produce unoptimized binaries.
        
          -D gtk4=false: Use this switch if you
          haven't installed GTK-4.20.2. Note that gcr-viewer-gtk4 will not be installed if this
          is passed to meson.
        
          -D gtk_doc=false: Allow
          building this package without Gi-DocGen-2025.5 installed. If you have
          Gi-DocGen-2025.5 installed and you
          wish to rebuild and install the API documentation, a meson configure command will
          reset this option.
        
          -D ssh_agent=false: Disable
          the ssh-agent implementation of this package. This implementation
          is intended to replace the ssh-agent implementation of gnome-keyring-48.0, but the replacement
          still has several unresolved issues.
        
          -D crypto=gnutls: Use this switch if
          you have GnuTLS-3.8.10 installed and wish to use it
          instead of libgcrypt-1.11.2.