Skip to content

Commit

Permalink
doc: describe cachedir and system_cachedir relationship
Browse files Browse the repository at this point in the history
For: #1150
  • Loading branch information
kontura committed Aug 8, 2024
1 parent ea8a9a2 commit 05adb5a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion doc/dnf5.conf.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ repository configuration file should aside from repo ID consists of baseurl, met
Has a reasonable root-writable default depending on the distribution. DNF5
needs to be able to create files and directories at this location.

Default: ``/var/cache/libdnf5``.
Regular user default: ``/home/$USER/.cache/libdnf5``.

For superuser the value is overwritten by :ref:`system_cachedir <_system_cachedir_options-label>` option.

.. _cacheonly_options-label:

Expand Down Expand Up @@ -413,6 +415,18 @@ repository configuration file should aside from repo ID consists of baseurl, met

Default: TODO add default

.. _system_cachedir_options-label:

``system_cachedir``

:ref:`string <string-label>`

For superuser overwrites the :ref:`cachedir <_cachedir_options-label>` option value.

Allows to differentiate user and superuser cachedir.

Default: ``/var/cache/libdnf5``.

.. _system_state_options-label:

``system_state``
Expand Down

0 comments on commit 05adb5a

Please sign in to comment.