dev-manual; ref-manual: Updates to replace "smart" with "dnf"

Fixes [YOCTO #9675]

Various fixes to replace the "smart" package manager references
with "dnf".

(From yocto-docs rev: 721dc7fb637c4c03534eb19f61b0b08a7303826d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark 2017-03-27 12:47:57 -07:00 committed by Richard Purdie
parent 646130271f
commit 1a4c0bfafd
4 changed files with 32 additions and 24 deletions

View File

@ -8244,13 +8244,14 @@
<title>Using RPM</title> <title>Using RPM</title>
<para> <para>
The <filename>smart</filename> application performs The <filename>dnf</filename> application performs
runtime package management of RPM packages. runtime package management of RPM packages.
You must perform an initial setup for You must perform an initial setup for
<filename>smart</filename> on the target machine <filename>dnf</filename> on the target machine
if the if the
<ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></ulink>, <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_FEED_ARCHS'><filename>PACKAGE_FEED_ARCHS</filename></ulink>,
<ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></ulink>, and <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_FEED_BASE_PATHS'><filename>PACKAGE_FEED_BASE_PATHS</filename></ulink>,
and
<ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></ulink> <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_FEED_URIS'><filename>PACKAGE_FEED_URIS</filename></ulink>
variables have not been set or the target image was variables have not been set or the target image was
built before the variables were set. built before the variables were set.
@ -8262,21 +8263,26 @@
<filename>all</filename>, <filename>i586</filename>, <filename>all</filename>, <filename>i586</filename>,
and <filename>qemux86</filename> from a server named and <filename>qemux86</filename> from a server named
<filename>my.server</filename>. <filename>my.server</filename>.
You must inform <filename>smart</filename> of the You must inform <filename>dnf</filename> of the
availability of these databases by issuing the availability of these databases by creating a
following commands on the target: <filename>/etc/yum.repos.d/oe-packages.repo</filename>
file with the following content:
<literallayout class='monospaced'> <literallayout class='monospaced'>
# smart channel --add i585 type=rpm-md baseurl=http://my.server/rpm/i586 [oe-packages]
# smart channel --add qemux86 type=rpm-md baseurl=http://my.server/rpm/qemux86 baseurl="http://my.server/rpm/i586 http://my.server/rpm/qemux86 http://my.server/rpm/all"
# smart channel --add all type=rpm-md baseurl=http://my.server/rpm/all
</literallayout> </literallayout>
From the target machine, fetch the repository: From the target machine, fetch the repository:
<literallayout class='monospaced'> <literallayout class='monospaced'>
# smart update # dnf makecache
</literallayout> </literallayout>
After everything is set up, <filename>smart</filename> After everything is set up, <filename>dnf</filename>
is able to find, install, and upgrade packages from is able to find, install, and upgrade packages from
the specified repository. the specified repository.
<note>
See the
<ulink url='http://dnf.readthedocs.io/en/latest/'>Dnf documentation</ulink>
for additional information.
</note>
</para> </para>
</section> </section>
@ -8446,11 +8452,11 @@
<para> <para>
In addition to being able to sign RPM packages, you can In addition to being able to sign RPM packages, you can
also enable the OpenEmbedded build system to be able to also enable the OpenEmbedded build system to be able to
handle previously signed package feeds for both RPM and IPK handle previously signed package feeds for IPK
packages. packages.
<note> <note>
The OpenEmbedded build system does not currently The OpenEmbedded build system does not currently
support signed DPKG package feeds. support signed DPKG or RPM package feeds.
</note> </note>
The steps you need to take to enable signed package feed The steps you need to take to enable signed package feed
use are similar to the steps used to sign RPM packages. use are similar to the steps used to sign RPM packages.
@ -9321,12 +9327,13 @@
<listitem><para><emphasis>Be sure your host's firewall <listitem><para><emphasis>Be sure your host's firewall
accepts incoming connections from accepts incoming connections from
192.168.7.0/24:</emphasis> 192.168.7.0/24:</emphasis>
Some of the tests (in particular smart tests) start an Some of the tests (in particular dnf tests) start
HTTP server on a random high number port, which is an HTTP server on a random high number port,
used to serve files to the target. which is used to serve files to the target.
The smart module serves The smart module serves
<filename>${DEPLOY_DIR}/rpm</filename> so it can run <filename>${WORKDIR}/oe-rootfs-repo</filename>
smart channel commands. That means your host's firewall so it can run dnf channel commands.
That means your host's firewall
must accept incoming connections from 192.168.7.0/24, must accept incoming connections from 192.168.7.0/24,
which is the default IP range used for tap devices which is the default IP range used for tap devices
by <filename>runqemu</filename>.</para></listitem> by <filename>runqemu</filename>.</para></listitem>
@ -9826,7 +9833,7 @@
<listitem><para>The default tests for the image are defined <listitem><para>The default tests for the image are defined
as: as:
<literallayout class='monospaced'> <literallayout class='monospaced'>
DEFAULT_TEST_SUITES_pn-<replaceable>image</replaceable> = "ping ssh df connman syslog xorg scp vnc date rpm smart dmesg" DEFAULT_TEST_SUITES_pn-<replaceable>image</replaceable> = "ping ssh df connman syslog xorg scp vnc date rpm dnf dmesg"
</literallayout></para></listitem> </literallayout></para></listitem>
<listitem><para>Add your own test to the list of the <listitem><para>Add your own test to the list of the
by using the following: by using the following:
@ -10024,7 +10031,7 @@
</para></listitem> </para></listitem>
<listitem><para><emphasis><filename>server_ip</filename>:</emphasis> <listitem><para><emphasis><filename>server_ip</filename>:</emphasis>
The host's IP address, which is The host's IP address, which is
usually used by the "smart" test usually used by the "dnf" test
suite. suite.
</para></listitem> </para></listitem>
<listitem><para><emphasis><filename>run(cmd, timeout=None)</filename>:</emphasis> <listitem><para><emphasis><filename>run(cmd, timeout=None)</filename>:</emphasis>

View File

@ -1054,7 +1054,7 @@
<para> <para>
Package installation is under control of the package manager Package installation is under control of the package manager
(e.g. smart/rpm, opkg, or apt/dpkg) regardless of whether or (e.g. dnf/rpm, opkg, or apt/dpkg) regardless of whether or
not package management is enabled for the target. not package management is enabled for the target.
At the end of the process, if package management is not At the end of the process, if package management is not
enabled for the target, the package manager's data files enabled for the target, the package manager's data files

View File

@ -2374,7 +2374,7 @@
<para> <para>
If you take the optional step to set up a repository (package feed) If you take the optional step to set up a repository (package feed)
on the development host that can be used by Smart, you can on the development host that can be used by Dnf, you can
install packages from the feed while you are running the image install packages from the feed while you are running the image
on the target (i.e. runtime installation of packages). on the target (i.e. runtime installation of packages).
For more information, see the For more information, see the

View File

@ -14352,8 +14352,9 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3"
<note> <note>
The <filename>TEST_SERVER_IP</filename> variable The <filename>TEST_SERVER_IP</filename> variable
is only used for a small number of tests such as is only used for a small number of tests such as
the "smart" test suite, which needs to download the "dnf" test suite, which needs to download
packages from <filename>DEPLOY_DIR/rpm</filename>. packages from
<filename>WORKDIR/oe-rootfs-repo</filename>.
</note> </note>
</para> </para>
</glossdef> </glossdef>