Update Question 7.7:
- Remove outdated text about port upgrading - Add a reference to the FreeBSD Handbook about port handling (Section 4.5.4) Approved by: gabor (mentor)
This commit is contained in:
parent
f5c9d6371d
commit
60c4e27601
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=32142
1 changed files with 5 additions and 42 deletions
|
@ -4455,48 +4455,11 @@ kern.timecounter.hardware: TSC -> i8254</screen>
|
|||
<para>FreeBSD does not include a port upgrading tool, but it
|
||||
does have some tools to make the upgrade process somewhat
|
||||
easier. You can also install additional tools to simplify
|
||||
port handling.</para>
|
||||
|
||||
<para>The &man.pkg.version.1; command can generate a script
|
||||
that will update installed ports to the latest version in
|
||||
the ports tree.</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>pkg_version -c > <replaceable>/tmp/myscript</replaceable></userinput></screen>
|
||||
|
||||
<para>The output script <emphasis>must</emphasis> be edited by
|
||||
hand before you use it. Recent versions of
|
||||
&man.pkg.version.1; force this by inserting an
|
||||
&man.exit.1; at the beginning of the script.</para>
|
||||
|
||||
<para>You should save the output of the script, as it will note
|
||||
packages that depend on the one that has been updated. These
|
||||
may or may not need to be updated as well. The usual case where
|
||||
they need to be updated is that a shared library has changed
|
||||
version numbers, so the ports that used that library need to be
|
||||
rebuilt to use the new version.</para>
|
||||
|
||||
<note>
|
||||
<para>Beginning with FreeBSD 5.0 (and higher revisions),
|
||||
&man.pkg.version.1; no longer supports the
|
||||
<option>-c</option> option.</para>
|
||||
</note>
|
||||
|
||||
<para>If you have the disk space, you can use the
|
||||
<command>portupgrade</command> tool to automate all of
|
||||
this. <command>portupgrade</command> includes various
|
||||
tools to simplify package handling. It is available under
|
||||
<filename role="package">ports-mgmt/portupgrade</filename>.
|
||||
Since it is written in Ruby,
|
||||
<command>portupgrade</command> is an unlikely candidate for
|
||||
integration with the main FreeBSD tree. That should not
|
||||
stop anyone from using it, however.</para>
|
||||
|
||||
<para>If your system is up full time, the &man.periodic.8; system
|
||||
can be used to generate a weekly list of ports that might need
|
||||
updating by setting
|
||||
<literal>weekly_status_pkg_enable="YES"</literal> in
|
||||
<filename>/etc/periodic.conf</filename>.</para>
|
||||
</answer>
|
||||
port handling, see the
|
||||
<ulink
|
||||
url="&url.books.handbook;/ports-using.html">Upgrading Ports</ulink>
|
||||
section in the FreeBSD Handbook.</para>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
<qandaentry>
|
||||
|
|
Loading…
Reference in a new issue