{"id":4620,"date":"2022-12-20T18:09:19","date_gmt":"2022-12-20T21:09:19","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/dnf-transaction-json-man5\/"},"modified":"2022-12-20T18:09:19","modified_gmt":"2022-12-20T21:09:19","slug":"dnf-transaction-json-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/dnf-transaction-json-man5\/","title":{"rendered":"DNF-TRANSACTION-JSON (man5)"},"content":{"rendered":"<h1 align=\"center\">DNF-TRANSACTION-JSON<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#TOP-LEVEL OBJECT\">TOP-LEVEL OBJECT<\/a><br \/> <a href=\"#RPM OBJECT\">RPM OBJECT<\/a><br \/> <a href=\"#GROUP OBJECT\">GROUP OBJECT<\/a><br \/> <a href=\"#ENVIRONMENT OBJECT\">ENVIRONMENT OBJECT<\/a><br \/> <a href=\"#GROUP-PACKAGE OBJECT\">GROUP-PACKAGE OBJECT<\/a><br \/> <a href=\"#ENVIRONMENT-GROUP OBJECT\">ENVIRONMENT-GROUP OBJECT<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">dnf-transaction-json \u2212 DNF Stored Transaction JSON<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The stored transaction format is considered unstable and may change in an incompatible way at any time. It will work if the same version of dnf is used to store and replay (or between versions as long as it stays the same).<\/p>\n<h2>TOP-LEVEL OBJECT <a name=\"TOP-LEVEL OBJECT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>version<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: string<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The version of the stored transaction format, in the form <b>MAJOR.MINOR<\/b>.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>MAJOR<\/b> version denotes backwards incompatible changes (old dnf won&#8217;t work with new transaction JSON).<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>MINOR<\/b> version denotes extending the format without breaking backwards compatibility (old dnf can work with new transaction JSON).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>rpms<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"44%\">\n<p>Type: an array of <i>rpm<\/i> objects<\/p>\n<\/td>\n<td width=\"34%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">A list of RPM packages in the transaction.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>groups<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"47%\">\n<p style=\"margin-top: 1em\">Type: an array of <i>group<\/i> objects<\/p>\n<\/td>\n<td width=\"31%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">A list of groups in the transaction.<\/p>\n<p style=\"margin-left:11%;\"><b>environments<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: an array of <i>group<\/i> objects<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">A list of environment groups in the transaction.<\/p>\n<h2>RPM OBJECT <a name=\"RPM OBJECT\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>action<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Possible values: <b>Downgrade, Downgraded, Install, Obsoleted, Reason Change, Reinstall, Reinstalled, Removed, Upgrade, Upgraded<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The action performed on the package in the transaction.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p style=\"margin-top: 1em\"><b>nevra<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\"><b>NEVRA<\/b> (<b>name\u2212epoch:version\u2212release.arch<\/b>) of the package.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>reason<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Possible values: <b>dependency, clean, group, unknown, user, weak\u2212dependency<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The reason why the package was pulled into the transaction.<\/p>\n<p style=\"margin-left:11%;\"><b>repo_id<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: string<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The id of the repository this package is coming from. Note repository ids are defined in the local respository configuration and may differ between systems.<\/p>\n<h2>GROUP OBJECT <a name=\"GROUP OBJECT\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>action<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Possible values: <b>Install, Upgrade, Removed<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The action performed on the group in the transaction.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><b>id<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">The id of the group.<\/p>\n<p style=\"margin-left:11%;\"><b>package_types<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: string<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Possible values: <b>conditional, default, mandatory, optional<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The types of packages in the group that will be installed. Valid only for the <b>Install<\/b> action.<\/p>\n<p style=\"margin-left:11%;\"><b>packages<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: an array of <i>group\u2212package<\/i> objects<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The packages belonging to the group in the transaction.<\/p>\n<h2>ENVIRONMENT OBJECT <a name=\"ENVIRONMENT OBJECT\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"9%\">\n<p style=\"margin-top: 1em\"><b>action<\/b><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Possible values: <b>Install, Upgrade, Removed<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The action performed on the environment group in the transaction.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><b>id<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">The id of the environment group.<\/p>\n<p style=\"margin-left:11%;\"><b>package_types<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: string<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Possible values: <b>conditional, default, mandatory, optional<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The types of packages in the environment group that will be installed. Valid only for the <b>Install<\/b> action.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"7%\">\n<p><b>group<\/b><\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"66%\">\n<p>Type: an array of <i>environment\u2212group<\/i> objects<\/p>\n<\/td>\n<td width=\"12%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">The groups belonging to the environment in the transaction.<\/p>\n<h2>GROUP-PACKAGE OBJECT <a name=\"GROUP-PACKAGE OBJECT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>installed<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: boolean<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Whether the package is considered installed as part of the group.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>name<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"18%\">\n<p>Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">The name of the package.<\/p>\n<p style=\"margin-left:11%;\"><b>package_type<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: string<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Possible values: <b>conditional, default, mandatory, optional<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The type of the package in the group.<\/p>\n<h2>ENVIRONMENT-GROUP OBJECT <a name=\"ENVIRONMENT-GROUP OBJECT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>group_type<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: string<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Possible values: <b>mandatory, optional<\/b><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">The type of the group in the environment.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>id<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"18%\">\n<p>Type: string<\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">The id of the group.<\/p>\n<p style=\"margin-left:11%;\"><b>installed<\/b><\/p>\n<p style=\"margin-left:22%;\">Type: boolean<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">Whether the group is considered installed as part of the environment.<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">See AUTHORS in DNF source distribution.<\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">2012-2020, Red Hat, Licensed under GPLv2+<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  dnf-transaction-json \u2212 DNF Stored Transaction JSON The stored transaction format is considered unstable and may change in an incompatible way at any time. It will work if the same version of dnf is used to store and replay (or between versions as long as it stays the same). <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1561,1291],"class_list":["post-4620","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-dnf-transaction-json","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4620"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4620\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}