.. _loading repositories:

Loading repositories
====================

These tutorials are follow-ups to :ref:`creating and configuring a session`, you
can prepend it directly for a functional piece of code.

Load repositories from system configuration files
-------------------------------------------------

.. literalinclude:: tests/repo/load_system_repos.cpp
    :language: c++
    :linenos:


Load a custom repository
------------------------

.. literalinclude:: tests/repo/load_repo.cpp
    :language: c++
    :linenos:
