Fix 'updating packages' reference in ports.html
Will Maier <[email protected]>
| Newsgroups | gmane.os.openbsd.www |
|---|---|
| Message-ID | <[email protected]> |
The 'Managing Installed Ports' section of ports.html describes using
pkg_add -r to update packages. Since 3.9, this is no longer
necessary, and using pkg_add -u is simpler. faq15.html only mentions
-r, and describes using -u. It seems ports.html should do the same.
The diff following my .sig supplements the old instructions. Since
3.8 will only be supported for a few more weeks, this may be
redundant. A better option might be to simply replace the old
instructions.
Thanks!
--
o--------------------------{ Will Maier }--------------------------o
| web:.......http://www.lfod.us/ | [email protected] |
*------------------[ BSD Unix: Live Free or Die ]------------------*
Index: ports.html
===================================================================
RCS file: /cvs/www/ports.html,v
retrieving revision 1.88
diff -u -b -u -r1.88 ports.html
--- ports.html 3 May 2006 00:21:26 -0000 1.88
+++ ports.html 5 Oct 2006 16:48:12 -0000
@@ -155,6 +155,22 @@
</ul>
This is slightly inconvenient, as packages may trigger dependencies, and
you may have to remove a large subset of packages for an update.
+
+<p>
+As of OpenBSD 3.9, to update a package you can simply use
+<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=pkg_add&sektion=1&format=html">pkg_add(1)</a>
+with the <b>-u</b> switch:
+
+<blockquote><pre>
+$ <b>sudo pkg_add -u</b>
+</pre></blockquote>
+
+<p>
+With no package name and the <b>-u</b> flag, all installed packages
+will be updated. You must correctly set <tt>PKG_PATH</tt> in order
+for package updates to work. Consult the FAQ entry <a
+ href="faq/faq15.html#PkgUpdate">Updating installed packages</a>
+for more information.
<h3><font color="#0000e0"><a name="Use">Using Ports</a></font></h3>