Skip to content

Commit b8b9d8f

Browse files
committed
man: also add --enablerepo=updates to dnf invocation
Without the updates repo, we are installing packages from the time that that version of Fedora was released. Normally, during the lifetime of the release most packages are updated, so most of the packages installed would be outdated, and the first update after installation would update a massive set of packages. Avoid all this by installing from the updates repo from the start.
1 parent cf48ff5 commit b8b9d8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

man/systemd-nspawn.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@
850850
<example>
851851
<title>Build and boot a minimal Fedora distribution in a container</title>
852852

853-
<programlisting># dnf -y --releasever=23 --installroot=/srv/mycontainer --disablerepo=* --enablerepo=fedora install systemd passwd dnf fedora-release vim-minimal
853+
<programlisting># dnf -y --releasever=23 --installroot=/srv/mycontainer --disablerepo=* --enablerepo=fedora --enablerepo=updates install systemd passwd dnf fedora-release vim-minimal
854854
# systemd-nspawn -bD /srv/mycontainer</programlisting>
855855

856856
<para>This installs a minimal Fedora distribution into the

0 commit comments

Comments
 (0)