svn commit: r42397 - head/ru_RU.KOI8-R/books/handbook/ports
Taras Korenko
taras at FreeBSD.org
Tue Jul 23 06:44:24 UTC 2013
Author: taras
Date: Tue Jul 23 06:44:24 2013
New Revision: 42397
URL: http://svnweb.freebsd.org/changeset/doc/42397
Log:
+ ru/handbook: add translation of "pkgng-intro" subsection.
Modified:
head/ru_RU.KOI8-R/books/handbook/ports/chapter.xml
Modified: head/ru_RU.KOI8-R/books/handbook/ports/chapter.xml
==============================================================================
--- head/ru_RU.KOI8-R/books/handbook/ports/chapter.xml Tue Jul 23 01:43:17 2013 (r42396)
+++ head/ru_RU.KOI8-R/books/handbook/ports/chapter.xml Tue Jul 23 06:44:24 2013 (r42397)
@@ -7,7 +7,6 @@
Original revision: r41718
-->
-<!-- Translation of <sect1 id="pkgng-intro"/> is currently not available. -->
<chapter id="ports">
<chapterinfo>
@@ -606,11 +605,385 @@ docbook =
</sect1>
<sect1 id="pkgng-intro">
- <!-- XXX Not translated yet -->
- <title>*Using <application>pkgng</application> for Binary Package
- Management</title>
+ <title>éÓÐÏÌØÚÏ×ÁÎÉÅ <application>pkgng</application> ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ
+ ÂÉÎÁÒÎÙÍÉ ÐÁËÅÔÁÍÉ</title>
- <para>üÔÏÔ ÒÁÚÄÅÌ ÎÅ ÐÅÒÅ×ÅÄÅÎ.</para>
+ <para><application>pkgng</application> — ÜÔÏ ÕÓÏ×ÅÒÛÅÎÓÔ×Ï×ÁÎÎÙÊ
+ ÉÎÓÔÒÕÍÅÎÔ, ÐÒÉÛÅÄÛÉÊ ÎÁ ÓÍÅÎÕ ÔÒÁÄÉÃÉÏÎÎÙÍ ÕÔÉÌÉÔÁÍ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ
+ &os;. ïÎ ÏÂÌÁÄÁÅÔ ÍÎÏÖÅÓÔ×ÏÍ ÆÕÎËÃÉÏÎÁÌØÎÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ, ÕÓËÏÒÑÀÝÉÈ
+ É ÏÂÌÅÇÞÁÀÝÉÈ ÒÁÂÏÔÕ Ó ÂÉÎÁÒÎÙÍÉ ÐÁËÅÔÁÍÉ. ðÅÒ×ÙÊ ÒÅÌÉÚ
+ <application>pkgng</application> ÓÏÓÔÏÑÌÓÑ × Á×ÇÕÓÔÅ 2012 ÇÏÄÁ.</para>
+
+ <para><application>pkgng</application> ÎÅ Ñ×ÌÑÅÔÓÑ ÚÁÍÅÎÏÊ ÄÌÑ ÕÔÉÌÉÔ
+ ÕÐÒÁ×ÌÅÎÉÑ ÐÏÒÔÁÍÉ, ÔÁËÉÈ ËÁË
+ <filename role="package">ports-mgmt/portmaster</filename> ÉÌÉ
+ <filename role="package">ports-mgmt/portupgrade</filename>. ÷ ÔÏ ×ÒÅÍÑ,
+ ËÁË <filename role="package">ports-mgmt/portmaster</filename> É
+ <filename role="package">ports-mgmt/portupgrade</filename> ÐÏÚ×ÏÌÑÀÔ
+ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÐÒÉÌÏÖÅÎÉÑ ÓÔÏÒÏÎÎÉÈ ÒÁÚÒÁÂÏÔÞÉËÏ× ËÁË ÉÚ ÂÉÎÁÒÎÙÈ
+ ÐÁËÅÔÏ×, ÔÁË É ÉÚ
+ ëÏÌÌÅËÃÉÉ ðÏÒÔÏ×, ÕÔÉÌÉÔÁ <application>pkgng</application>
+ ÄÁÅÔ ×ÏÚÍÏÖÎÏÓÔØ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÐÒÉÌÏÖÅÎÉÑ ÉÓËÌÀÞÉÔÅÌØÎÏ ÉÚ ÂÉÎÁÒÎÙÈ
+ ÐÁËÅÔÏ×.</para>
+
+ <sect2 id="pkgng-initial-setup">
+ <title>îÁÞÁÌÏ ÒÁÂÏÔÙ Ó <application>pkgng</application></title>
+
+ <para>÷Ï &os; 9.1 É ÂÏÌÅÅ ÐÏÚÄÎÉÅ ×ËÌÀÞÅÎÁ ÐÒÏÇÒÁÍÍÁ
+ "ÓÁÍÏÎÁÓÔÒÏÊËÉ" ("bootstrap")
+ <application>pkgng</application>. ïÎÁ ÓËÁÞÉ×ÁÅÔ É ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ
+ ÏÓÎÏ×ÎÕÀ ÕÔÉÌÉÔÕ <application>pkgng</application>.</para>
+
+ <para>äÌÑ ÚÁÐÕÓËÁ ÓÁÍÏÎÁÓÔÒÏÊËÉ, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>/usr/sbin/pkg</userinput></screen>
+
+ <para>äÌÑ ÂÏÌÅÅ ÒÁÎÎÉÈ ×ÅÒÓÉÊ &os; ÕÔÉÌÉÔÕ
+ <application>pkgng</application> ÎÅÏÂÈÏÄÉÍÏ ÕÓÔÁÎÏ×ÉÔØ ÉÚ ëÏÌÌÅËÃÉÉ
+ ðÏÒÔÏ× ÉÌÉ ÉÚ ÂÉÎÁÒÎÙÈ ÐÁËÅÔÏ×.</para>
+
+ <para>äÌÑ ÕÓÔÁÎÏ×ËÉ <application>pkgng</application> ÉÚ ÐÏÒÔÁ, ÚÁÐÕÓÔÉÔÅ
+ ÓÌÅÄÕÀÝÅÅ:</para>
+
+ <screen>&prompt.root; <userinput>cd /usr/ports/ports-mgmt/pkg</userinput>
+&prompt.root; <userinput>make</userinput>
+&prompt.root; <userinput>make install clean</userinput></screen>
+
+ <para>äÌÑ ÕÓÔÁÎÏ×ËÉ ÉÚ ÂÉÎÁÒÎÏÇÏ ÐÁËÅÔÁ, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg_add -r pkg</userinput></screen>
+
+ <para>äÅÊÓÔ×ÕÀÝÉÅ ÉÎÓÔÁÌÌÑÃÉÉ &os; ÔÒÅÂÕÀÔ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÑ ÂÁÚÙ ÄÁÎÎÙÈ
+ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ× ÕÔÉÌÉÔÙ <application>pkg_install</application>
+ Ë ÎÏ×ÏÍÕ ÆÏÒÍÁÔÕ. äÌÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÎ×ÅÒÔÉÒÏ×ÁÎÉÑ, ÚÁÐÕÓÔÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg2ng</userinput></screen>
+
+ <para>÷ÙÛÅÐÒÉ×ÅÄÅÎÎÙÊ ÛÁÇ ÎÅ ÔÒÅÂÕÅÔÓÑ ÄÌÑ ÎÏ×ÙÈ ÉÎÓÔÁÌÌÑÃÉÊ, × ËÏÔÏÒÙÈ
+ ÎÅ ÂÙÌÏ ÕÓÔÁÎÏ×ÌÅÎÏ ÐÒÏÇÒÁÍÍ ÓÔÏÒÏÎÎÉÈ ÒÁÚÒÁÂÏÔÞÉËÏ×.</para>
+
+ <important>
+ <para>üÔÏÔ ÛÁÇ ÎÅÏÂÒÁÔÉÍ. ðÏÓÌÅ ÐÅÒÅ×ÏÄÁ ÂÁÚÙ ÄÁÎÎÙÈ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ
+ ÐÁËÅÔÏ× Ë ÆÏÒÍÁÔÕ <application>pkgng</application> ÕÔÉÌÉÔÁÍÉ
+ <application>pkg_install</application> ÂÏÌÅÅ ÐÏÌØÚÏ×ÁÔØÓÑ
+ ÎÅ ÓÌÅÄÕÅÔ.</para>
+ </important>
+
+ <note>
+ <para>÷ ÐÒÏÃÅÓÓÅ ËÏÎ×ÅÒÔÉÒÏ×ÁÎÉÑ ÂÁÚÙ ÄÁÎÎÙÈ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ×
+ ÍÏÇÕÔ ×ÏÚÎÉËÁÔØ ÓÏÏÂÝÅÎÉÑ Ï ÏÛÉÂËÁÈ. îÁ ÄÁÎÎÏÍ ÜÔÁÐÅ ÉÈ ÍÏÖÎÏ
+ ÉÇÎÏÒÉÒÏ×ÁÔØ, ÔÁË ËÁË ÐÅÒÅÞÅÎØ ÐÒÏÇÒÁÍÍ ÓÔÏÒÏÎÎÉÈ ÒÁÚÒÁÂÏÔÞÉËÏ×,
+ ÉÎÆÏÒÍÁÃÉÑ Ï ËÏÔÏÒÙÈ ÎÅ ÂÙÌÁ ÐÒÅÏÂÒÁÚÏ×ÁÎÁ, ÂÕÄÅÔ ÐÅÒÅÞÉÓÌÅÎ
+ ÐÏ ÚÁ×ÅÒÛÅÎÉÉ ÒÁÂÏÔÙ <command>pkg2ng</command>. îÁÄ ÜÔÉÍ ÐÅÒÅÞÎÅÍ
+ ÐÒÉÄÅÔÓÑ ÐÏÒÁÂÏÔÁÔØ ×ÒÕÞÎÕÀ.</para>
+ </note>
+
+ <para>þÔÏÂÙ ÕÂÅÄÉÔØÓÑ, ÞÔÏ ëÏÌÌÅËÃÉÑ ðÏÒÔÏ× &os; ÒÅÇÉÓÔÒÉÒÕÅÔ
+ ÎÏ×ÙÅ ÐÒÏÇÒÁÍÍÙ ÐÒÉ ÐÏÍÏÝÉ <application>pkgng</application>, Á ÎÅ
+ <application>pkg_install</application>, ÄÌÑ ×ÅÒÓÉÊ &os;, ÐÒÅÄÛÅÓÔ×ÕÀÝÉÈ
+ 10.<replaceable>X</replaceable>, × ÆÁÊÌ
+ <filename>/etc/make.conf</filename> ÎÅÏÂÈÏÄÉÍÏ ×ÎÅÓÔÉ ÓÌÅÄÕÀÝÕÀ
+ ÚÁÐÉÓØ:</para>
+
+ <programlisting>WITH_PKGNG= yes</programlisting>
+ </sect2>
+
+ <sect2 id="pkgng-pkg-conf">
+ <title>îÁÓÔÒÏÊËÁ ÏËÒÕÖÅÎÉÑ <application>pkgng</application></title>
+
+ <para>óÉÓÔÅÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ <application>pkgng</application>
+ ÐÒÉ ×ÙÐÏÌÎÅÎÉÉ ÂÏÌØÛÉÎÓÔ×Á ÏÐÅÒÁÃÉÊ ÏÂÒÁÝÁÅÔÓÑ Ë ÐÁËÅÔÎÏÍÕ
+ ÒÅÐÏÚÉÔÏÒÉÀ. áÄÒÅÓ ÉÓÐÏÌØÚÕÅÍÏÇÏ ÐÏ ÕÍÏÌÞÁÎÉÀ ÒÅÐÏÚÉÔÏÒÉÑ ÕËÁÚÁÎ
+ × <filename>/usr/local/etc/pkg.conf</filename> ÉÌÉ × ÐÅÒÅÍÅÎÎÏÊ
+ ÏËÒÕÖÅÎÉÑ <envar>PACKAGESITE</envar>. ðÏÓÌÅÄÎÑÑ ÐÅÒÅÏÐÒÅÄÅÌÑÅÔ
+ ÁÄÒÅÓ, ÕËÁÚÁÎÎÙÊ × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍ ÆÁÊÌÅ.</para>
+
+ <para>äÏÐÏÌÎÉÔÅÌØÎÙÅ ÏÐÃÉÉ ËÏÎÆÉÇÕÒÁÃÉÉ <application>pkgng</application>
+ ÏÐÉÓÁÎÙ × pkg.conf(5).</para>
+ </sect2>
+
+ <sect2 id="pkgng-basic-usage">
+ <title>ïÓÎÏ×ÎÙÅ ÏÐÅÒÁÃÉÉ <application>pkgng</application></title>
+
+ <para>éÎÆÏÒÍÁÃÉÀ ÐÏ ÒÁÂÏÔÅ Ó <application>pkgng</application> ÍÏÖÎÏ
+ ÎÁÊÔÉ ÎÁ ÓÔÒÁÎÉÃÅ ÓÐÒÁ×ÏÞÎÉËÁ pkg(8), ÉÌÉ × ×Ù×ÏÄÅ ÕÔÉÌÉÔÙ
+ <command>pkg</command>, ÚÁÐÕÝÅÎÎÏÊ ÂÅÚ ÁÒÇÕÍÅÎÔÏ×.</para>
+
+ <para>ëÁÖÄÙÊ ÁÒÇÕÍÅÎÔ ËÏÍÁÎÄÙ <application>pkgng</application> ÏÐÉÓÁÎ ÎÁ
+ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ÓÔÒÁÎÉÃÅ ÓÐÒÁ×ÏÞÎÉËÁ. îÁÐÒÉÍÅÒ, ÞÔÏÂÙ ÏÚÎÁËÏÍÉÔØÓÑ
+ ÓÏ ÓÔÒÁÎÉÃÅÊ ÓÐÒÁ×ÏÞÎÉËÁ ÄÌÑ <command>pkg install</command>,
+ ÚÁÐÕÓÔÉÔÅ ÌÀÂÕÀ ÉÚ Ä×ÕÈ ÎÉÖÅÓÌÅÄÕÀÝÉÈ ËÏÍÁÎÄ:</para>
+
+ <screen>&prompt.root; <userinput>pkg help install</userinput></screen>
+
+ <screen>&prompt.root; <userinput>man pkg-install</userinput></screen>
+
+ <sect3 id="pkgng-pkg-info">
+ <title>ðÏÌÕÞÅÎÉÅ ÉÎÆÏÒÍÁÃÉÉ Ï ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÁÈ ÐÒÉ ÐÏÍÏÝÉ
+ <application>pkgng</application></title>
+
+ <para>éÎÆÏÒÍÁÃÉÑ Ï ÕÓÔÁÎÏ×ÌÅÎÎÙÈ × ÓÉÓÔÅÍÅ ÐÁËÅÔÁÈ ÍÏÖÅÔ ÂÙÔØ
+ ÏÔÏÂÒÁÖÅÎÁ ÐÒÉ ÐÏÍÏÝÉ ËÏÍÁÎÄÙ <command>pkg info</command>. ðÏÄÏÂÎÏ
+ ÄÏ &man.pkg.info.1;, × ×Ù×ÏÄÅ ÐÅÒÅÞÉÓÌÑÀÔÓÑ ×ÅÒÓÉÉ É ÏÐÉÓÁÎÉÑ ×ÓÅÈ
+ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ×.</para>
+
+ <para>åÓÌÉ ÎÅÏÂÈÏÄÉÍÁ ÉÎÆÏÒÍÁÃÉÑ Ï ËÏÎËÒÅÔÎÏÍ ÐÁËÅÔÅ, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg info <replaceable>packagename</replaceable></userinput></screen>
+
+ <para>îÁÐÒÉÍÅÒ, ÄÌÑ ÐÏÌÕÞÅÎÉÑ ×ÅÒÓÉÉ <application>pkgng</application>,
+ ËÏÔÏÒÙÊ ÕÓÔÁÎÏ×ÌÅÎ × ÓÉÓÔÅÍÅ, ÚÁÐÕÓÔÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg info pkg</userinput>
+pkg-1.0.2 New generation package manager</screen>
+ </sect3>
+
+ <sect3 id="pkgng-installing-deinstalling">
+ <title>õÓÔÁÎÏ×ËÁ É ÕÄÁÌÅÎÉÅ ÐÁËÅÔÏ× ÐÒÉ ÐÏÍÏÝÉ
+ <application>pkgng</application></title>
+
+ <para>÷ ÏÂÝÅÍ, ÂÉÎÁÒÎÙÅ ÐÁËÅÔÙ ÕÓÔÁÎÁ×ÌÉ×ÁÀÔÓÑ ÐÒÉ ÐÏÍÏÝÉ:</para>
+
+ <screen>&prompt.root; <userinput>pkg install <replaceable>packagename</replaceable></userinput></screen>
+
+ <para>ëÏÍÁÎÄÁ <command>pkg install</command> ÏÂÒÁÝÁÅÔÓÑ Ë ÐÁËÅÔÎÏÍÕ
+ ÒÅÐÏÚÉÔÏÒÉÀ, ÜÔÏ ÕÐÏÍÉÎÁÌÏÓØ × <xref linkend="pkgng-pkg-conf"/>.
+ ëÏÍÁÎÄÁ pkg-add(8), ÎÁÐÒÏÔÉ×, ÎÅ ×ÙÐÏÌÎÑÅÔ ÏÂÒÁÝÅÎÉÊ Ë ÐÁËÅÔÎÏÍÕ
+ ÒÅÐÏÚÉÔÏÒÉÀ, Á ÔÁËÖÅ ÉÇÎÏÒÉÒÕÅÔ ÐÅÒÅÍÅÎÎÕÀ
+ <envar>PACKAGESITE</envar>. ëÁË ÓÌÅÄÓÔ×ÉÅ — ÚÁ×ÉÓÉÍÏÓÔÉ
+ ÎÅ ÏÔÓÌÅÖÉ×ÁÀÔÓÑ, É ÎÅÏÂÈÏÄÉÍÙÅ ÚÁ×ÉÓÉÍÙÅ ËÏÍÐÏÎÅÎÔÙ ÎÅ ÓËÁÞÉ×ÁÀÔÓÑ
+ Ó ÕÄÁÌÅÎÎÏÇÏ ÉÓÔÏÞÎÉËÁ. ÷ ÜÔÏÍ ÒÁÚÄÅÌÅ ÏÐÉÓÁÎÁ ÒÁÂÏÔÁ Ó
+ <command>pkg install</command>. úÁ ÐÏÄÒÏÂÎÏÓÔÑÍÉ ÒÁÂÏÔÙ Ó
+ <command>pkg add</command> ÏÂÒÁÔÉÔÅÓØ Ë ÓÐÒÁ×ÏÞÎÏÊ ÓÔÒÁÎÉÃÅ ÐÏ
+ pkg-add(8).</para>
+
+ <para>õÔÉÌÉÔÁ <command>pkg install</command> ÍÏÖÅÔ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ
+ ÄÏÐÏÌÎÉÔÅÌØÎÙÅ ÂÉÎÁÒÎÙÅ ÐÁËÅÔÙ. îÁÐÒÉÍÅÒ, ÄÌÑ ÕÓÔÁÎÏ×ËÉ
+ <application>curl</application>, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg install curl</userinput>
+Updating repository catalogue
+Repository catalogue is up-to-date, no need to fetch fresh copy
+The following packages will be installed:
+
+ Installing ca_root_nss: 3.13.5
+ Installing curl: 7.24.0
+
+The installation will require 4 MB more space
+
+1 MB to be downloaded
+
+Proceed with installing packages [y/N]: <userinput>y</userinput>
+ca_root_nss-3.13.5.txz 100% 255KB 255.1KB/s 255.1KB/s 00:00
+curl-7.24.0.txz 100% 1108KB 1.1MB/s 1.1MB/s 00:00
+Checking integrity... done
+Installing ca_root_nss-3.13.5... done
+Installing curl-7.24.0... done</screen>
+
+ <para>îÏ×ÙÊ ÐÁËÅÔ, ËÁË É ÌÀÂÙÅ ÄÏÐÏÌÎÉÔÅÌØÎÙÅ ÐÁËÅÔÙ, ËÏÔÏÒÙÅ ÂÙÌÉ
+ ÕÓÔÁÎÏ×ÌÅÎÙ ËÁË ÚÁ×ÉÓÉÍÏÓÔÉ, ÐÅÒÅÞÉÓÌÑÀÔÓÑ × ÓÐÉÓËÅ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ
+ ÐÁËÅÔÏ×:</para>
+
+ <screen>&prompt.root; <userinput>pkg info</userinput>
+ca_root_nss-3.13.5 The root certificate bundle from the Mozilla Project
+curl-7.24.0 Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
+pkg-1.0.2 New generation package manager</screen>
+
+ <para>ðÁËÅÔÙ, × ËÏÔÏÒÙÈ ÂÏÌÅÅ ÎÅÔ ÎÅÏÂÈÏÄÉÍÏÓÔÉ, ÍÏÇÕÔ ÂÙÔØ ÕÄÁÌÅÎÙ
+ ÐÒÉ ÐÏÍÏÝÉ <command>pkg delete</command>. îÁÐÒÉÍÅÒ, ÅÓÌÉ ×ÙÑÓÎÉÔÓÑ,
+ ÞÔÏ <application>curl</application> ÎÅ ÎÕÖÅÎ:</para>
+
+ <screen>&prompt.root; <userinput>pkg delete curl</userinput>
+The following packages will be deleted:
+
+ curl-7.24.0_1
+
+The deletion will free 3 MB
+
+Proceed with deleting packages [y/N]: <userinput>y</userinput>
+Deleting curl-7.24.0_1... done</screen>
+ </sect3>
+
+ <sect3 id="pkgng-upgrading">
+ <title>ïÂÎÏ×ÌÅÎÉÅ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ× ÐÒÉ ÐÏÍÏÝÉ
+ <application>pkgng</application></title>
+
+ <para>ðÁËÅÔÙ, ×ÅÒÓÉÉ ËÏÔÏÒÙÈ ÕÓÔÁÒÅÌÉ, ÍÏÖÎÏ ÎÁÊÔÉ ÐÒÉ ÐÏÍÏÝÉ ËÏÍÁÎÄÙ
+ <command>pkg version</command>. ÷ÅÒÓÉÉ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ×
+ ÓÒÁ×ÎÉ×ÁÀÔÓÑ Ó ×ÅÒÓÉÑÍÉ ÐÒÉÌÏÖÅÎÉÊ ÉÚ ÌÏËÁÌØÎÏÇÏ ÄÅÒÅ×Á ÐÏÒÔÏ×,
+ Á × ÓÌÕÞÁÅ ÏÔÓÕÔÓÔ×ÉÑ ÐÏÒÔÏ× pkg-version(8) ÏÂÒÁÝÁÅÔÓÑ Ë ÕÄÁÌÅÎÎÏÍÕ
+ ÒÅÐÏÚÉÔÏÒÉÀ ÐÁËÅÔÏ×.</para>
+
+ <para>ðÒÉ ÐÏÍÏÝÉ <application>pkgng</application> ÍÏÖÎÏ ÏÂÎÏ×ÌÑÔØ
+ ÐÁËÅÔÙ ÄÏ ÎÏ×ÙÈ ×ÅÒÓÉÊ. ðÒÅÄÐÏÌÏÖÉÍ, ×ÙÛÌÁ ÎÏ×ÁÑ ×ÅÒÓÉÑ
+ <application>curl</application>. õÓÔÁÎÏ×ÌÅÎÎÙÊ ÐÁËÅÔ ÍÏÖÎÏ
+ ÏÂÎÏ×ÉÔØ Ë ÎÏ×ÏÊ ×ÅÒÓÉÉ, ×ÙÐÏÌÎÉ×:</para>
+
+ <screen>&prompt.root; <userinput>pkg upgrade</userinput>
+Updating repository catalogue
+repo.txz 100% 297KB 296.5KB/s 296.5KB/s 00:00
+The following packages will be upgraded:
+
+ Upgrading curl: 7.24.0 -> 7.24.0_1
+
+1 MB to be downloaded
+
+Proceed with upgrading packages [y/N]: <userinput>y</userinput>
+curl-7.24.0_1.txz 100% 1108KB 1.1MB/s 1.1MB/s 00:00
+Checking integrity... done
+Upgrading curl from 7.24.0 to 7.24.0_1... done</screen>
+ </sect3>
+
+ <sect3 id="pkgng-auditing">
+ <title>áÕÄÉÔ ÂÅÚÏÐÁÓÎÏÓÔÉ ÐÁËÅÔÏ× ÐÒÉ ÐÏÍÏÝÉ
+ <application>pkgng</application></title>
+
+ <para>éÚÒÅÄËÁ × ÐÒÉÌÏÖÅÎÉÑÈ ÉÚ ëÏÌÌÅËÃÉÉ ðÏÒÔÏ× ÏÂÎÁÒÕÖÉ×ÁÀÔÓÑ
+ ÕÑÚ×ÉÍÏÓÔÉ. ÷ <application>pkgng</application> ×ÓÔÒÏÅÎÁ ×ÏÚÍÏÖÎÏÓÔØ
+ ×ÙÐÏÌÎÑÔØ ÁÕÄÉÔ ÂÅÚÏÐÁÓÎÏÓÔÉ, ÄÅÊÓÔ×ÕÀÝÁÑ ÐÏÄÏÂÎÏ ÐÒÉÌÏÖÅÎÉÀ ÉÚ
+ <filename role="package">ports-mgmt/portaudit</filename>. äÌÑ
+ ×ÙÐÏÌÎÅÎÉÑ ÁÕÄÉÔÁ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ × ÓÉÓÔÅÍÕ ÐÒÏÇÒÁÍÍ, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg audit -F</userinput></screen>
+ </sect3>
+ </sect2>
+
+ <sect2 id="pkgng-advanced-usage">
+ <title>óÌÏÖÎÙÅ ×ÏÐÒÏÓÙ ÒÁÂÏÔÙ Ó <application>pkgng</application></title>
+
+ <sect3 id="pkgng-autoremove">
+ <title>á×ÔÏÍÁÔÉÞÅÓËÏÅ ÕÄÁÌÅÎÉÅ ÎÅÉÓÐÏÌØÚÕÅÍÙÈ ÚÁ×ÉÓÉÍÏÓÔÅÊ ÐÒÉ
+ ÐÏÍÏÝÉ <application>pkgng</application></title>
+
+ <para>ðÏÓÌÅ ÕÄÁÌÅÎÉÑ ÐÁËÅÔÁ × ÓÉÓÔÅÍÅ ÍÏÇÕÔ ÏÓÔÁÔØÓÑ ÎÅÉÓÐÏÌØÚÕÅÍÙÅ
+ ÚÁ×ÉÓÉÍÏÓÔÉ, ÎÁÐÏÄÏÂÉÅ <filename
+ role="package">security/ca_root_nss</filename> ÉÚ ÐÒÉÍÅÒÁ ×ÙÛÅ.
+ ôÁËÉÅ ÐÁËÅÔÙ ÏÓÔÁÀÔÓÑ ÕÓÔÁÎÏ×ÌÅÎÎÙÍÉ, ÎÅÓÍÏÔÒÑ ÎÁ ÔÏ, ÞÔÏ ÏÎÉ
+ ÂÏÌÅÅ ÎÅ ÔÒÅÂÕÀÔÓÑ ÄÒÕÇÉÍ ÐÁËÅÔÁÍ. ïÐÒÅÄÅÌÉÔØ É ÕÄÁÌÉÔØ
+ ÎÅÉÓÐÏÌØÚÕÅÍÙÅ ÐÁËÅÔÙ, ËÏÔÏÒÙÅ ÂÙÌÉ ÕÓÔÁÎÏ×ÌÅÎÙ ËÁË ÚÁ×ÉÓÉÍÏÓÔÉ,
+ ÍÏÖÎÏ ÐÒÉ ÐÏÍÏÝÉ:</para>
+
+ <screen>&prompt.root; <userinput>pkg autoremove</userinput>
+Packages to be autoremoved:
+ ca_root_nss-3.13.5
+
+The autoremoval will free 723 kB
+
+Proceed with autoremoval of packages [y/N]: <userinput>y</userinput>
+Deinstalling ca_root_nss-3.13.5... done</screen>
+ </sect3>
+
+ <sect3 id="pkgng-backup">
+ <title>òÅÚÅÒ×ÎÏÅ ËÏÐÉÒÏ×ÁÎÉÅ ÂÁÚÙ ÄÁÎÎÙÈ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ×
+ <application>pkgng</application></title>
+
+ <para>÷ ÏÔÌÉÞÉÅ ÏÔ ÔÒÁÄÉÃÉÏÎÎÏÊ ÓÉÓÔÅÍÙ ÕÐÒÁ×ÌÅÎÉÑ ÐÁËÅÔÁÍÉ,
+ <application>pkgng</application> ÒÁÓÐÏÌÁÇÁÅÔ Ó×ÏÉÍ ÓÏÂÓÔ×ÅÎÎÙÍ
+ ÍÅÈÁÎÉÚÍÏÍ ÒÅÚÅÒ×ÎÏÇÏ ËÏÐÉÒÏ×ÁÎÉÑ ÂÁÚÙ ÄÁÎÎÙÈ. äÌÑ ÒÕÞÎÏÇÏ ÓÏÚÄÁÎÉÑ
+ ÒÅÚÅÒ×ÎÏÊ ËÏÐÉÉ ÂÁÚÙ ÄÁÎÎÙÈ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ×, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg backup -d <replaceable>pkgng.db</replaceable></userinput></screen>
+
+ <note>
+ <para>úÁÍÅÎÉÔÅ ÉÍÑ ÆÁÊÌÁ <replaceable>pkgng.db</replaceable> ÎÁ
+ ÂÏÌÅÅ ÐÏÄÈÏÄÑÝÅÅ.</para>
+ </note>
+
+ <para>÷ ÄÏÐÏÌÎÅÎÉÅ, <application>pkgng</application> ÓÏÄÅÒÖÉÔ ÓËÒÉÐÔ
+ &man.periodic.8;, ÐÏÚ×ÏÌÑÀÝÉÊ ×ÙÐÏÌÎÑÔØ ÅÖÅÄÎÅ×ÎÏÅ Á×ÔÏÍÁÔÉÞÅÓËÏÅ
+ ËÏÐÉÒÏ×ÁÎÉÅ ÂÁÚÙ ÄÁÎÎÙÈ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ×.
+ äÌÑ ÁËÔÉ×ÁÃÉÉ ÄÁÎÎÏÊ ×ÏÚÍÏÖÎÏÓÔÉ ÚÁÄÁÊÔÅ ÐÅÒÅÍÅÎÎÏÊ
+ <literal>daily_backup_pkgng_enable</literal> ÚÎÁÞÅÎÉÅ
+ <literal>YES</literal> × ÆÁÊÌÅ &man.periodic.conf.5;.</para>
+
+ <tip>
+ <para>äÌÑ ÐÒÅÄÏÔ×ÒÁÝÅÎÉÑ ÐÅÒÉÏÄÉÞÅÓËÏÇÏ ÚÁÐÕÓËÁ ÁÎÁÌÏÇÉÞÎÏÇÏ ÓËÒÉÐÔÁ
+ ÓÉÓÔÅÍÙ <application>pkg_install</application>, ÔÁËÖÅ ×ÙÐÏÌÎÑÀÝÅÇÏ
+ ÒÅÚÅÒ×ÎÏÅ ËÏÐÉÒÏ×ÁÎÉÅ ÂÁÚÙ ÄÁÎÎÙÈ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ×, ÚÁÄÁÊÔÅ
+ ÐÅÒÅÍÅÎÎÏÊ <literal>daily_backup_pkgdb_enable</literal> ÚÎÁÞÅÎÉÅ
+ <literal>NO</literal> × ÆÁÊÌÅ &man.periodic.conf.5;.</para>
+ </tip>
+
+ <para>äÌÑ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÓÏÄÅÒÖÉÍÏÇÏ ÂÁÚÙ ÄÁÎÎÙÈ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ×
+ ÉÚ ÒÅÚÅÒ×ÎÏÊ ËÏÐÉÉ, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg backup -r <replaceable>/path/to/pkgng.db</replaceable></userinput></screen>
+ </sect3>
+
+ <sect3 id="pkgng-clean">
+ <title>õÄÁÌÅÎÉÅ ËÏÐÉÊ ÕÓÔÁÒÅ×ÛÉÈ ÐÁËÅÔÏ× × ÓÉÓÔÅÍÅ
+ <application>pkgng</application></title>
+
+ <para>ðÏ ÕÍÏÌÞÁÎÉÀ, <application>pkgng</application> ÓÏÈÒÁÎÑÅÔ ËÏÐÉÉ
+ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÂÉÎÁÒÎÙÈ ÐÁËÅÔÏ× × ËÁÔÁÌÏÇ, ÕËÁÚÁÎÎÙÊ ÐÅÒÅÍÅÎÎÏÊ
+ <envar>PKG_CACHEDIR</envar> × pkg.conf(5). ðÒÉ ÏÂÎÏ×ÌÅÎÉÉ ÐÁËÅÔÏ×
+ ËÏÍÁÎÄÏÊ <command>pkg upgrade</command> ÓÔÁÒÙÅ ×ÅÒÓÉÉ ÏÂÎÏ×ÌÅÎÎÙÈ
+ ÐÁËÅÔÏ× Á×ÔÏÍÁÔÉÞÅÓËÉ ÎÅ ÕÄÁÌÑÀÔÓÑ.</para>
+
+ <para>äÌÑ ÕÄÁÌÅÎÉÑ ÕÓÔÁÒÅ×ÛÉÈ ×ÅÒÓÉÊ ÂÉÎÁÒÎÙÈ ÐÁËÅÔÏ× ÉÚ ËÅÛ-ËÁÔÁÌÏÇÁ,
+ ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg clean</userinput></screen>
+ </sect3>
+
+ <sect3 id="pkgng-set">
+ <title>éÚÍÅÎÅÎÉÅ ÍÅÔÁÄÁÎÎÙÈ ÐÁËÅÔÏ×
+ <application>pkgng</application></title>
+
+ <para>óÏ ×ÒÅÍÅÎÅÍ ÐÒÏÇÒÁÍÍÙ ÉÚ ëÏÌÌÅËÃÉÉ ðÏÒÔÏ× ÍÏÇÕÔ ÐÒÅÔÅÒÐÅ×ÁÔØ
+ ÉÚÍÅÎÅÎÉÑ ÓÔÁÒÛÅÇÏ (major) ÎÏÍÅÒÁ ×ÅÒÓÉÉ. ÷ ÏÔÌÉÞÉÅ ÏÔ
+ <application>pkg_install</application>,
+ <application>pkgng</application> ÒÁÓÐÏÌÁÇÁÅÔ ×ÓÔÒÏÅÎÎÏÊ ËÏÍÁÎÄÏÊ ÄÌÑ
+ ÏÂÎÏ×ÌÅÎÉÑ ÉÎÆÏÒÍÁÃÉÉ Ï ÐÒÏÉÓÈÏÖÄÅÎÉÉ (origin) ÐÁËÅÔÁ. îÁÐÒÉÍÅÒ,
+ ÉÚÎÁÞÁÌØÎÏ ÐÏÒÔ <filename role="package">lang/php5</filename>
+ ÂÙÌ ×ÅÒÓÉÉ <literal>5.3</literal>. ðÏÚÖÅ ÜÔÏÔ ÐÏÒÔ ÂÙÌ ÐÅÒÅÉÍÅÎÏ×ÁÎ
+ × <filename role="package">lang/php53</filename>, Á ÐÏÄ ÉÍÅÎÅÍ
+ <filename role="package">lang/php5</filename> ÂÙÌ ÓÏÚÄÁÎ ÐÏÒÔ ×ÅÒÓÉÉ
+ <literal>5.4</literal>. õÔÉÌÉÔÁÍ ÓÉÓÔÅÍÙ
+ <application>pkg_install</application> ÄÌÑ ÏÂÎÏ×ÌÅÎÉÑ ÉÎÆÏÒÍÁÃÉÉ
+ Ï ÐÒÏÉÓÈÏÖÄÅÎÉÉ (origin) ÐÁËÅÔÁ × ÓÏÂÓÔ×ÅÎÎÏÊ ÂÁÚÅ ÄÁÎÎÙÈ
+ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÐÁËÅÔÏ× ÐÏÔÒÅÂÏ×ÁÌÁÓØ ÂÙ ÐÏÍÏÝØ ÄÏÐÏÌÎÉÔÅÌØÎÏÇÏ
+ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ, ÔÁËÏÇÏ ËÁË
+ <filename role="package">ports-mgmt/portmaster</filename>.</para>
+
+ <para>÷ ÏÔÌÉÞÉÅ ÏÔ
+ <filename role="package">ports-mgmt/portmaster</filename> É
+ <filename role="package">ports-mgmt/portupgrade</filename> ÄÌÑ
+ ÐÏÒÔÏ×, ÐÏÒÑÄÏË ÐÅÒÅÞÉÓÌÅÎÉÑ ÎÏ×ÏÊ É ÓÔÁÒÏÊ ×ÅÒÓÉÊ ÏÔÌÉÞÁÀÔÓÑ.
+ äÌÑ <application>pkgng</application> ÎÅÏÂÈÏÄÉÍ ÓÌÅÄÕÀÝÉÊ
+ ÐÏÒÑÄÏË:</para>
+
+ <screen>&prompt.root; <userinput>pkg set -o <replaceable>category/oldport</replaceable>:<replaceable>category/newport</replaceable></userinput></screen>
+
+ <para>îÁÐÒÉÍÅÒ, × ×ÙÛÅÐÒÉ×ÅÄÅÎÎÏÍ ÓÌÕÞÁÅ ÄÌÑ ÚÁÍÅÎÙ ÉÎÆÏÒÍÁÃÉÉ
+ Ï ÐÒÏÉÓÈÏÖÄÅÎÉÉ ÐÁËÅÔÁ, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg set -o lang/php5:lang/php53</userinput></screen>
+
+ <para>åÝÅ ÏÄÉÎ ÐÒÉÍÅÒ: ÄÌÑ ÉÚÍÅÎÅÎÉÑ ÉÎÆÏÒÍÁÃÉÉ Ï ÐÒÏÉÓÈÏÖÄÅÎÉÉ
+ ÐÁËÅÔÁ Ó <filename role="package">lang/ruby18</filename> ÎÁ
+ <filename role="package">lang/ruby19</filename>, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg set -o lang/ruby18:lang/ruby19</userinput></screen>
+
+ <para>é ÐÏÓÌÅÄÎÉÊ ÐÒÉÍÅÒ: ÄÌÑ ÚÁÍÅÎÙ ÉÎÆÏÒÍÁÃÉÉ Ï ÐÒÏÉÓÈÏÖÄÅÎÉÉ ÐÁËÅÔÁ
+ ÒÁÚÄÅÌÑÅÍÏÊ ÂÉÂÌÉÏÔÅËÉ <filename>libglut</filename> Ó
+ <filename role="package">graphics/libglut</filename> ÎÁ
+ <filename role="package">graphics/freeglut</filename>,
+ ÚÁÐÕÓÔÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg set -o graphics/libglut:graphics/freeglut</userinput></screen>
+
+ <note>
+ <para>÷ÙÐÏÌÎÑÑ ÚÁÍÅÎÕ ÉÎÆÏÒÍÁÃÉÉ Ï ÐÒÏÉÓÈÏÖÄÅÎÉÉ ÐÁËÅÔÏ×, ×
+ ÂÏÌØÛÉÎÓÔ×Å ÓÌÕÞÁÅ× ÔÁËÖÅ ÔÒÅÂÕÅÔÓÑ ÐÅÒÅÕÓÔÁÎÏ×ÉÔØ ÐÁËÅÔÙ, ËÏÔÏÒÙÅ
+ ÚÁ×ÉÓÑÔ ÏÔ ÉÚÍÅÎÉ×ÛÅÇÏÓÑ ÐÁËÅÔÁ. äÌÑ ÐÒÉÎÕÄÉÔÅÌØÎÏÊ ÐÅÒÅÕÓÔÁÎÏ×ËÉ
+ ÚÁ×ÉÓÑÝÉÈ ÐÁËÅÔÏ×, ×ÙÐÏÌÎÉÔÅ:</para>
+
+ <screen>&prompt.root; <userinput>pkg install -Rf <replaceable>graphics/freeglut</replaceable></userinput></screen>
+ </note>
+ </sect3>
+ </sect2>
</sect1>
<sect1 id="ports-using">
More information about the svn-doc-all
mailing list