linux - DNF fails to synchronize cache when using --installroot option -
i trying install bunch of software in dummy root, can copy new systems quickly. whenever use dnf install or dnf builddep --installroot option fails synchronize cache repositories.
i thought it's missing configuration, copied yum , dnf configuration files installroot dir:
cp /etc/dnf/dnf.conf /path/to/root_fs/etc/dnf cp /etc/yum.conf /path/to/root_fs/etc/ cp -r /etc/yum.repos.d/ /path/to/root_fs/etc/
but still is
sudo dnf -c $root_fs_dir/etc/dnf/dnf.conf install gcc --installroot=$root_fs_dir -releasever=23 error: failed synchronize cache repo 'updates'
dnf works fine updating host system. how configure dnf install packages different root dir.
dnf not clever , needs releasever
if installs in chroots (bug). miss single -
in front of option:
sudo dnf -c $root_fs_dir/etc/dnf/dnf.conf install gcc \ --installroot=$root_fs_dir --releasever=23
but release 23 eol mirrors not have exist anymore. should use supported release version.
Comments
Post a Comment