White space fix only. Translators can ignore.

Approved by:  bcr (mentor)
This commit is contained in:
Dru Lavigne 2013-01-28 15:14:36 +00:00
parent 1bf9bcb110
commit 821fa97a04
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40782

View file

@ -113,10 +113,10 @@
</itemizedlist> </itemizedlist>
<note> <note>
<para>Throughout this chapter, the <command>svn</command> command <para>Throughout this chapter, the <command>svn</command>
is used to obtain and update &os; sources. To use it, you will command is used to obtain and update &os; sources. To use it,
need to install the port or the package for <filename you will need to install the port or the package for <filename
role="package">devel/subversion</filename>.</para> role="package">devel/subversion</filename>.</para>
</note> </note>
</sect1> </sect1>
@ -362,10 +362,11 @@ MergeChanges /etc/ /var/named/etc/</programlisting>
<para><emphasis>Major version</emphasis> upgrades are when &os; <para><emphasis>Major version</emphasis> upgrades are when &os;
is upgraded from one major version to another, like from is upgraded from one major version to another, like from
&os;&nbsp;8.X to &os;&nbsp;9.X. Major version upgrades will remove old object files and &os;&nbsp;8.X to &os;&nbsp;9.X. Major version upgrades will
libraries which will break most third party applications. remove old object files and libraries which will break most
It is recommended that all installed ports either be removed third party applications. It is recommended that all
and re-installed or upgraded after a major version upgrade by using the installed ports either be removed and re-installed or upgraded
after a major version upgrade by using the
<filename role="package">ports-mgmt/portupgrade</filename> <filename role="package">ports-mgmt/portupgrade</filename>
utility. A brute-force rebuild of all installed utility. A brute-force rebuild of all installed
applications can be accomplished with this command:</para> applications can be accomplished with this command:</para>
@ -383,45 +384,47 @@ MergeChanges /etc/ /var/named/etc/</programlisting>
<title>Dealing with Custom Kernels</title> <title>Dealing with Custom Kernels</title>
<para>If a custom kernel is in use, the upgrade process is <para>If a custom kernel is in use, the upgrade process is
slightly more involved, and the procedure varies depending on slightly more involved, and the procedure varies depending
the version of &os;.</para> on the version of &os;.</para>
<sect4 id="freebsd-update-custom-kernel-8x"> <sect4 id="freebsd-update-custom-kernel-8x">
<title>Custom Kernels with &os;&nbsp;8.X and Earlier</title> <title>Custom Kernels with &os;&nbsp;8.X and Earlier</title>
<para>A copy of the <para>A copy of the
<filename>GENERIC</filename> kernel is needed, and it should <filename>GENERIC</filename> kernel is needed, and it
be placed in should be placed in <filename
<filename class="directory">/boot/GENERIC</filename>. If the class="directory">/boot/GENERIC</filename>. If the
<filename>GENERIC</filename> kernel is not already present in <filename>GENERIC</filename> kernel is not already present
the system, it may be obtained using one of the following in the system, it may be obtained using one of the
methods:</para> following methods:</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para>If a custom kernel has only been built once, the <para>If a custom kernel has only been built once, the
kernel in kernel in <filename
<filename class="directory">/boot/kernel.old</filename> is class="directory">/boot/kernel.old</filename> is
actually the <filename>GENERIC</filename> one. Simply actually the <filename>GENERIC</filename> one. Simply
rename this directory to <filename rename this directory to <filename
class="directory">/boot/GENERIC</filename>.</para> class="directory">/boot/GENERIC</filename>.</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Assuming physical access to the machine is possible, a <para>Assuming physical access to the machine is
copy of the <filename>GENERIC</filename> kernel can be possible, a copy of the <filename>GENERIC</filename>
installed from the CD-ROM media. Insert your installation kernel can be installed from the CD-ROM media. Insert
disc and use the following commands:</para> your installation disc and use the following
commands:</para>
<screen>&prompt.root; <userinput>mount /cdrom</userinput> <screen>&prompt.root; <userinput>mount /cdrom</userinput>
&prompt.root; <userinput>cd /cdrom/<replaceable>X.Y-RELEASE</replaceable>/kernels</userinput> &prompt.root; <userinput>cd /cdrom/<replaceable>X.Y-RELEASE</replaceable>/kernels</userinput>
&prompt.root; <userinput>./install.sh GENERIC</userinput></screen> &prompt.root; <userinput>./install.sh GENERIC</userinput></screen>
<para>Replace <filename <para>Replace <filename
class="directory"><replaceable>X.Y-RELEASE</replaceable></filename> class="directory"><replaceable>X.Y-RELEASE</replaceable></filename>
with the actual version of the release you are using. The with the actual version of the release you are using.
<filename>GENERIC</filename> kernel will be installed in The <filename>GENERIC</filename> kernel will be
<filename class="directory">/boot/GENERIC</filename> by installed in <filename
class="directory">/boot/GENERIC</filename> by
default.</para> default.</para>
</listitem> </listitem>
@ -438,14 +441,15 @@ MergeChanges /etc/ /var/named/etc/</programlisting>
<para>For this kernel to be picked up as <para>For this kernel to be picked up as
<filename>GENERIC</filename> <filename>GENERIC</filename>
by <command>freebsd-update</command>, the by <command>freebsd-update</command>, the
<filename>GENERIC</filename> configuration file must not <filename>GENERIC</filename> configuration file must
have been modified in any way. It is also suggested that not have been modified in any way. It is also
it is built without any other special options.</para> suggested that it is built without any other special
options.</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>Rebooting to the <filename>GENERIC</filename> kernel is <para>Rebooting to the <filename>GENERIC</filename> kernel
not required at this stage.</para> is not required at this stage.</para>
</sect4> </sect4>
<sect4 id="freebsd-update-custom-kernel-9x"> <sect4 id="freebsd-update-custom-kernel-9x">
@ -455,7 +459,8 @@ MergeChanges /etc/ /var/named/etc/</programlisting>
<listitem> <listitem>
<para>If a custom kernel has only been built once, the <para>If a custom kernel has only been built once, the
kernel in kernel in
<filename class="directory">/boot/kernel.old</filename> <filename
class="directory">/boot/kernel.old</filename>
is actually the <literal>GENERIC</literal> kernel. is actually the <literal>GENERIC</literal> kernel.
Rename this directory to <filename Rename this directory to <filename
class="directory">/boot/kernel</filename>.</para> class="directory">/boot/kernel</filename>.</para>
@ -490,8 +495,8 @@ MergeChanges /etc/ /var/named/etc/</programlisting>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>Rebooting to the <filename>GENERIC</filename> kernel is <para>Rebooting to the <filename>GENERIC</filename> kernel
not required at this stage.</para> is not required at this stage.</para>
</sect4> </sect4>
</sect3> </sect3>
@ -507,10 +512,11 @@ MergeChanges /etc/ /var/named/etc/</programlisting>
<para>After the command has been received, <para>After the command has been received,
<command>freebsd-update</command> will evaluate the <command>freebsd-update</command> will evaluate the
configuration file and current system in an attempt to gather configuration file and current system in an attempt to
the information necessary to update the system. A screen gather the information necessary to update the system. A
listing will display what components have been detected and screen listing will display what components have been
what components have not been detected. For example:</para> detected and what components have not been detected. For
example:</para>
<screen>Looking up update.FreeBSD.org mirrors... 1 mirrors found. <screen>Looking up update.FreeBSD.org mirrors... 1 mirrors found.
Fetching metadata signature for 8.0-RELEASE from update1.FreeBSD.org... done. Fetching metadata signature for 8.0-RELEASE from update1.FreeBSD.org... done.
@ -531,11 +537,11 @@ Does this look reasonable (y/n)? y</screen>
<para>At this point, <command>freebsd-update</command> will <para>At this point, <command>freebsd-update</command> will
attempt to download all files required for the upgrade. In attempt to download all files required for the upgrade. In
some cases, the user may be prompted with questions regarding some cases, the user may be prompted with questions
what to install or how to proceed.</para> regarding what to install or how to proceed.</para>
<para>When using a custom kernel, the above step will produce a <para>When using a custom kernel, the above step will produce
warning similar to the following:</para> a warning similar to the following:</para>
<screen>WARNING: This system is running a "<replaceable>MYKERNEL</replaceable>" kernel, which is not a <screen>WARNING: This system is running a "<replaceable>MYKERNEL</replaceable>" kernel, which is not a
kernel configuration distributed as part of FreeBSD 8.0-RELEASE. kernel configuration distributed as part of FreeBSD 8.0-RELEASE.
@ -543,20 +549,21 @@ This kernel will not be updated: you MUST update the kernel manually
before running "/usr/sbin/freebsd-update install"</screen> before running "/usr/sbin/freebsd-update install"</screen>
<para>This warning may be safely ignored at this point. The <para>This warning may be safely ignored at this point. The
updated <filename>GENERIC</filename> kernel will be used as an updated <filename>GENERIC</filename> kernel will be used as
intermediate step in the upgrade process.</para> an intermediate step in the upgrade process.</para>
<para>After all patches have been downloaded to the local <para>After all patches have been downloaded to the local
system, they will then be applied. This process may take a system, they will then be applied. This process may take a
while depending on the speed and workload of the machine. while depending on the speed and workload of the machine.
Configuration files will then be merged&nbsp;&mdash; this part Configuration files will then be merged&nbsp;&mdash; this
of the process requires some user intervention as a file may part of the process requires some user intervention as a
be merged or an editor may appear on screen for a manual file may be merged or an editor may appear on screen for a
merge. The results of every successful merge will be shown to manual merge. The results of every successful merge will be
the user as the process continues. A failed or ignored merge shown to the user as the process continues. A failed or
will cause the process to abort. Users may wish to make a ignored merge will cause the process to abort. Users may
backup of <filename class="directory">/etc</filename> and wish to make a backup of <filename
manually merge important files, such as class="directory">/etc</filename> and manually merge
important files, such as
<filename>master.passwd</filename> or <filename>master.passwd</filename> or
<filename>group</filename> at a later time.</para> <filename>group</filename> at a later time.</para>
@ -576,8 +583,8 @@ before running "/usr/sbin/freebsd-update install"</screen>
<para>The kernel and kernel modules will be patched first. At <para>The kernel and kernel modules will be patched first. At
this point the machine must be rebooted. If the system was this point the machine must be rebooted. If the system was
running with a custom kernel, use the &man.nextboot.8; command running with a custom kernel, use the &man.nextboot.8;
to set the kernel for the next boot to command to set the kernel for the next boot to
<filename class="directory">/boot/GENERIC</filename> (which <filename class="directory">/boot/GENERIC</filename> (which
was updated):</para> was updated):</para>
@ -585,16 +592,16 @@ before running "/usr/sbin/freebsd-update install"</screen>
<warning> <warning>
<para>Before rebooting with the <filename>GENERIC</filename> <para>Before rebooting with the <filename>GENERIC</filename>
kernel, make sure it contains all drivers required for your kernel, make sure it contains all drivers required for
system to boot properly (and connect to the network, if the your system to boot properly (and connect to the network,
machine that is being updated is accessed remotely). In if the machine that is being updated is accessed
particular, if the previously running custom kernel remotely). In particular, if the previously running
contained built-in functionality usually provided by kernel custom kernel contained built-in functionality usually
modules, make sure to temporarily load these modules into provided by kernel modules, make sure to temporarily load
the <filename>GENERIC</filename> kernel using the these modules into the <filename>GENERIC</filename> kernel
<filename>/boot/loader.conf</filename> facility. You may using the <filename>/boot/loader.conf</filename> facility.
also wish to disable non-essential services, disk and You may also wish to disable non-essential services, disk
network mounts, etc. until the upgrade process is and network mounts, etc. until the upgrade process is
complete.</para> complete.</para>
</warning> </warning>
@ -607,9 +614,9 @@ before running "/usr/sbin/freebsd-update install"</screen>
<command>freebsd-update</command> will need to be started <command>freebsd-update</command> will need to be started
again. The state of the process has been saved and thus, again. The state of the process has been saved and thus,
<command>freebsd-update</command> will not start from the <command>freebsd-update</command> will not start from the
beginning, but will remove all old shared libraries and object beginning, but will remove all old shared libraries and
files. To continue to this stage, issue the following object files. To continue to this stage, issue the
command:</para> following command:</para>
<screen>&prompt.root; <userinput>freebsd-update install</userinput></screen> <screen>&prompt.root; <userinput>freebsd-update install</userinput></screen>
@ -623,10 +630,10 @@ before running "/usr/sbin/freebsd-update install"</screen>
<sect3 id="freebsdupdate-portsrebuild"> <sect3 id="freebsdupdate-portsrebuild">
<title>Rebuilding Ports After a Major Version Upgrade</title> <title>Rebuilding Ports After a Major Version Upgrade</title>
<para>After a major version upgrade, all third party software will now need to be rebuilt and <para>After a major version upgrade, all third party software
re-installed. This is required as installed software may will now need to be rebuilt and re-installed. This is
depend on libraries which have been removed during the upgrade required as installed software may depend on libraries which
process. The have been removed during the upgrade process. The
<filename role="package">ports-mgmt/portupgrade</filename> <filename role="package">ports-mgmt/portupgrade</filename>
command may be used to automate this process. The following command may be used to automate this process. The following
commands may be used to begin this process:</para> commands may be used to begin this process:</para>
@ -637,19 +644,19 @@ before running "/usr/sbin/freebsd-update install"</screen>
&prompt.root; <userinput>rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db</userinput> &prompt.root; <userinput>rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db</userinput>
&prompt.root; <userinput>portupgrade -af</userinput></screen> &prompt.root; <userinput>portupgrade -af</userinput></screen>
<para>Once this has completed, finish the upgrade process with a <para>Once this has completed, finish the upgrade process with
final call to <command>freebsd-update</command>. Issue the a final call to <command>freebsd-update</command>. Issue
following command to tie up all loose ends in the upgrade the following command to tie up all loose ends in the
process:</para> upgrade process:</para>
<screen>&prompt.root; <userinput>freebsd-update install</userinput></screen> <screen>&prompt.root; <userinput>freebsd-update install</userinput></screen>
<para>If the <filename>GENERIC</filename> kernel was temporarily <para>If the <filename>GENERIC</filename> kernel was
used, this is the time to build and install a new custom temporarily used, this is the time to build and install a
kernel in the usual way.</para> new custom kernel in the usual way.</para>
<para>Reboot the machine into the new &os; version. The process <para>Reboot the machine into the new &os; version. The
is complete.</para> process is complete.</para>
</sect3> </sect3>
</sect2> </sect2>
@ -1493,16 +1500,18 @@ Fetching 133 new ports or files... done.</screen>
</indexterm> </indexterm>
<listitem> <listitem>
<para>Use the <link linkend="svn">svn</link> program to <para>Use the <link linkend="svn">svn</link> program
check out the desired development or release branch. to check out the desired development or release
This is the recommended method, providing access to branch. This is the recommended method, providing
&os; development as it occurs. The preferred URL access to &os; development as it occurs. The
prefix for <application>Subversion</application> preferred URL prefix for
checkout of the -CURRENT base system is <application>Subversion</application> checkout of
<literal>http://svn.freebsd.org/base/head/</literal>; the -CURRENT base system is
<literal>http://svn.freebsd.org/base/head/</literal>;
because of the size of the repository, it is because of the size of the repository, it is
recommended that only desired subtrees be checked out. recommended that only desired subtrees be checked
</para> out.</para>
</listitem> </listitem>
<listitem> <listitem>
@ -1516,8 +1525,8 @@ Fetching 133 new ports or files... done.</screen>
environment.</para> environment.</para>
<warning> <warning>
<para><command>cvsup</command> has been deprecated by <para><command>cvsup</command> has been deprecated
the Project, and is not recommended.</para> by the Project, and is not recommended.</para>
</warning> </warning>
<note> <note>
@ -1557,7 +1566,7 @@ Fetching 133 new ports or files... done.</screen>
for fairly long periods of time. We recommend using for fairly long periods of time. We recommend using
<application><link <application><link
linkend="svn">Subversion</link></application> for linkend="svn">Subversion</link></application> for
any system with Internet connectivity.</para> any system with Internet connectivity.</para>
</listitem> </listitem>
</orderedlist> </orderedlist>
</listitem> </listitem>
@ -1730,22 +1739,22 @@ Fetching 133 new ports or files... done.</screen>
</indexterm> </indexterm>
<listitem> <listitem>
<para>Use the <link linkend="svn">svn</link> program to <para>Use the <link linkend="svn">svn</link> program
check out the desired development or release branch. to check out the desired development or release
This is the recommended method, providing access to branch. This is the recommended method, providing
&os; development as it occurs. Branch names include access to &os; development as it occurs. Branch
<literal>head</literal> for the current development names include <literal>head</literal> for the
head, and branches identified in <ulink current development head, and branches identified in
url="&url.base;/releng/">the release engineering page</ulink>, <ulink url="&url.base;/releng/">the release
such as engineering page</ulink>, such as
<literal>stable/9</literal> or <literal>stable/9</literal> or
<literal>releng/9.0</literal>. The preferred URL <literal>releng/9.0</literal>. The preferred URL
prefix for <application>Subversion</application> prefix for <application>Subversion</application>
checkout of the base system is checkout of the base system is
<literal>http://svn.freebsd.org/base/</literal>; <literal>http://svn.freebsd.org/base/</literal>;
because of the size of the repository, it is because of the size of the repository, it is
recommended that only desired subtrees be checked out. recommended that only desired subtrees be checked
</para> out.</para>
</listitem> </listitem>
<listitem> <listitem>
@ -1760,8 +1769,8 @@ Fetching 133 new ports or files... done.</screen>
your environment.</para> your environment.</para>
<warning> <warning>
<para><command>cvsup</command> has been deprecated by <para><command>cvsup</command> has been deprecated
the Project, and is not recommended.</para> by the Project, and is not recommended.</para>
</warning> </warning>
</listitem> </listitem>
@ -1839,25 +1848,25 @@ Fetching 133 new ports or files... done.</screen>
<secondary>anonymous</secondary> <secondary>anonymous</secondary>
</indexterm> </indexterm>
<para><application>Subversion</application>, <application>Anonymous <para><application>Subversion</application>,
CVS</application> and <application>CVSup</application> use the <application>Anonymous CVS</application> and
<application>CVSup</application> use the
<emphasis>pull</emphasis> model of updating sources. For <emphasis>pull</emphasis> model of updating sources. For
<application>Subversion</application>, <application>Subversion</application>, the user (or a
the user (or a <command>cron</command> script) invokes the <command>cron</command> script) invokes the
<command>svn</command> program, and it brings files up-to-date. <command>svn</command> program, and it brings files up-to-date.
<application>Subversion</application> is the preferred means of <application>Subversion</application> is the preferred means of
updating local source trees. updating local source trees. <command>cvsup</command> and
<command>cvsup</command> and <command>cvs</command> work under <command>cvs</command> work under similar principles, but are
similar principles, but are now deprecated in favour of Subversion. now deprecated in favour of Subversion. The updates you receive
The updates you receive are up-to-the-minute and are up-to-the-minute and you get them when, and only when, you
you get them when, and only when, you want them. You can easily want them. You can easily restrict your updates to the specific
restrict your updates to the specific files or directories that files or directories that are of interest to you. Updates are
are of interest to you. Updates are generated on the fly by the generated on the fly by the server, according to what you have
server, according to what you have and what you want to have. and what you want to have. Unless the reason is truly
Unless the reason is truly compelling, compelling, <application>Subversion</application> should be used
<application>Subversion</application> should be used in preference in preference to other synchronization mechanisms, which have
to other synchronization mechanisms, which have been deprecated been deprecated and will be discontinued in the future.</para>
and will be discontinued in the future.</para>
<indexterm> <indexterm>
<primary><application>CTM</application></primary> <primary><application>CTM</application></primary>