diff --git a/dnf5/context.cpp b/dnf5/context.cpp index 014ed00d8..b3addd9fb 100644 --- a/dnf5/context.cpp +++ b/dnf5/context.cpp @@ -436,6 +436,7 @@ void Context::Impl::download_and_run(libdnf5::base::Transaction & transaction) { std::filesystem::create_directories(offline_datadir); base.get_config().get_destdir_option().set(offline_datadir / "packages"); + transaction.set_download_local_pkgs(true); } transaction.download();