diff --git a/include/libdnf5/base/goal.hpp b/include/libdnf5/base/goal.hpp
index a4a711c0d..fbf2702e1 100644
--- a/include/libdnf5/base/goal.hpp
+++ b/include/libdnf5/base/goal.hpp
@@ -65,6 +65,12 @@ class LIBDNF_API Goal {
/// @param settings A structure to override default goal settings.
void add_install(const std::string & spec, const libdnf5::GoalJobSettings & settings = libdnf5::GoalJobSettings());
+ /// Process spec to install related debug info and debug source packages
+ /// @param spec A string with installation spec
+ /// @param settings A structure to override default goal settings.
+ void add_debug_install(
+ const std::string & spec, const libdnf5::GoalJobSettings & settings = libdnf5::GoalJobSettings());
+
/// High level API for an artifact upgrade. See `add_install()` for details.
/// @param spec A string with upgrade spec
/// @param settings A structure to override default goal settings.
diff --git a/include/libdnf5/base/goal_elements.hpp b/include/libdnf5/base/goal_elements.hpp
index a38a5802c..608ba3bf5 100644
--- a/include/libdnf5/base/goal_elements.hpp
+++ b/include/libdnf5/base/goal_elements.hpp
@@ -152,7 +152,8 @@ enum class GoalAction {
REPLAY_REINSTALL,
REPLAY_REASON_CHANGE,
REPLAY_REASON_OVERRIDE,
- REVERT_COMPS_UPGRADE
+ REVERT_COMPS_UPGRADE,
+ INSTALL_DEBUG
};
/// Convert GoalAction enum to user-readable string
diff --git a/libdnf5/base/goal.cpp b/libdnf5/base/goal.cpp
index 6415d0bdd..ccd3561b1 100644
--- a/libdnf5/base/goal.cpp
+++ b/libdnf5/base/goal.cpp
@@ -48,6 +48,7 @@ along with libdnf. If not, see .
#include
#include
#include