Installroot in DNF-2.0

I have seen several discussions about proper behavior of installroot and often it happened that what was requested by one user several others declined. But all of them had one thing common, that they would like to have proper description of installroot behavior. Now I can proudly announce that installroot entered new era where the behavior is slightly changed, but documented in detail.

Basically what was changed

  • config file and reposdir are searched inside the installroot first. If they are not present, they are taken from host system. But when a path is specified within command line argument (–config= in case of config file or –setopt=reposdir= for reposdir) then this path is always related to the host with no exceptions.
  • pluginconfpath is taken from installroot

If you think that reposdir behavior is not so new, you are completely right, because it is same like in YUM.

The documentation was also enhanced with following examples:

dnf --installroot=<installroot> --releasever=<release> install system-release
Sets permanently the releasever of the system within <installroot> directory from given <release>.
dnf --installroot=<installroot> --setopt=reposdir=<path> --config /path/dnf.conf upgrade
Upgrade packages inside of installroot from repository described by --setopt using configuration from /path/dnf.conf

I am really happy that I can say that additional information can be found in DNF documentation. Please have a fun with DNF.

One thought on “Installroot in DNF-2.0

  1. Thank you for such a sweet tutorial – all this time later, I’ve found it and love the end result. I appreciate the time you spent sharing your skills.

    | |

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current day month ye@r *