The dnf
application performs
runtime package management of RPM packages.
You must perform an initial setup for
dnf
on the target machine
if the
PACKAGE_FEED_ARCHS
,
PACKAGE_FEED_BASE_PATHS
,
and
PACKAGE_FEED_URIS
variables have not been set or the target image was
built before the variables were set.
As an example, assume the target is able to use the
following package databases:
all
, i586
,
and qemux86
from a server named
my.server
.
You must inform dnf
of the
availability of these databases by creating a
/etc/yum.repos.d/oe-packages.repo
file with the following content:
[oe-packages] baseurl="http://my.server/rpm/i586 http://my.server/rpm/qemux86 http://my.server/rpm/all"
From the target machine, fetch the repository:
# dnf makecache
After everything is set up, dnf
is able to find, install, and upgrade packages from
the specified repository.