Changeset View
Changeset View
Standalone View
Standalone View
head/en_US.ISO8859-1/books/handbook/ports/chapter.xml
Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | run either of these commands:</para> | ||||
<para>The rest of this section demonstrates common binary | <para>The rest of this section demonstrates common binary | ||||
package management tasks which can be performed using | package management tasks which can be performed using | ||||
<application>pkg</application>. Each demonstrated command | <application>pkg</application>. Each demonstrated command | ||||
provides many switches to customize its use. Refer to a | provides many switches to customize its use. Refer to a | ||||
command's help or man page for details and more | command's help or man page for details and more | ||||
examples.</para> | examples.</para> | ||||
</sect2> | </sect2> | ||||
<sect2 xml:id="quarterly-latest-branch"> | |||||
<title>Quarterly and Latest Ports Branches</title> | |||||
<para>The <literal>Quarterly</literal> branch provides users | |||||
with a more predictable and stable experience for port and | |||||
package installation and upgrades. This is done essentially | |||||
by only allowing non-feature updates. Quarterly branches aim | |||||
to receive security fixes (that may be version updates, or | |||||
backports of commits), bug fixes and ports compliance or | |||||
framework changes. The Quarterly branch is cut from HEAD at | |||||
the beginning of every (yearly) quarter in January, April, | |||||
July, and October. Branches are named according to the year | |||||
(YYYY) and quarter (Q1-4) they are created in. For example, | |||||
the quarterly branch created in January 2016, is named 2016Q1. | |||||
And the <literal>Latest</literal> branch provides the latest | |||||
versions of the packages to the users.</para> | |||||
<para>To switch from quarterly to latest run the following | |||||
commands:</para> | |||||
<screen>&prompt.root; <userinput>cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf</userinput></screen> | |||||
<para>Edit the file | |||||
<filename>/usr/local/etc/pkg/repos/FreeBSD.conf</filename> | |||||
and change the string <emphasis>quarterly</emphasis> to | |||||
<emphasis>latest</emphasis> in the <literal>url:</literal> | |||||
line.</para> | |||||
<para>The result should be similar to the following:</para> | |||||
<programlisting>FreeBSD: { | |||||
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", | |||||
mirror_type: "srv", | |||||
signature_type: "fingerprints", | |||||
fingerprints: "/usr/share/keys/pkg", | |||||
enabled: yes | |||||
}</programlisting> | |||||
<para>And finally run this command to update from the new | |||||
(latest) repository metadata.</para> | |||||
<screen>&prompt.root; <userinput>pkg update -f</userinput></screen> | |||||
</sect2> | |||||
<sect2 xml:id="pkgng-pkg-info"> | <sect2 xml:id="pkgng-pkg-info"> | ||||
<title>Obtaining Information About Installed Packages</title> | <title>Obtaining Information About Installed Packages</title> | ||||
<para>Information about the packages installed on a system | <para>Information about the packages installed on a system | ||||
can be viewed by running <command>pkg info</command> which, | can be viewed by running <command>pkg info</command> which, | ||||
when run without any switches, will list the package version | when run without any switches, will list the package version | ||||
for either all installed packages or the specified | for either all installed packages or the specified | ||||
package.</para> | package.</para> | ||||
▲ Show 20 Lines • Show All 1,248 Lines • Show Last 20 Lines |