Source string Read only

(itstool) path: listitem/para
385/3850
Context English State
To keep track of updated ports, subscribe to the <link xlink:href="http://lists.FreeBSD.org/mailman/listinfo/freebsd-ports">FreeBSD ports mailing list</link> and the <link xlink:href="http://lists.FreeBSD.org/mailman/listinfo/freebsd-ports-bugs">FreeBSD ports bugs mailing list</link>.
Before installing any application, check <link xlink:href="https://vuxml.freebsd.org/"/> for security issues related to the application or type <command>pkg audit -F</command> to check all installed applications for known vulnerabilities.
The remainder of this chapter explains how to use packages and ports to install and manage third-party software on FreeBSD.
Finding Software
FreeBSD's list of available applications is growing all the time. There are a number of ways to find software to install:
The FreeBSD web site maintains an up-to-date searchable list of all the available applications, at <link xlink:href="@@URL_RELPREFIX@@/ports/index.html">https://www.FreeBSD.org/ports/</link>. The ports can be searched by application name or by software category.
<primary>FreshPorts</primary>
Dan Langille maintains <link xlink:href="http://www.FreshPorts.org/">FreshPorts.org</link> which provides a comprehensive search utility and also tracks changes to the applications in the Ports Collection. Registered users can create a customized watch list in order to receive an automated email when their watched ports are updated.
<primary>SourceForge</primary>
If finding a particular application becomes challenging, try searching a site like <link xlink:href="http://www.sourceforge.net/">SourceForge.net</link> or <link xlink:href="http://www.github.com/">GitHub.com</link> then check back at the <link xlink:href="@@URL_RELPREFIX@@/ports/index.html">FreeBSD site</link> to see if the application has been ported.
<primary>pkg</primary> <secondary>search</secondary>
To search the binary package repository for an application:
<prompt>#</prompt> <userinput>pkg search <replaceable>subversion</replaceable></userinput>
git-subversion-<replaceable>1.9.2</replaceable>
java-subversion-<replaceable>1.8.8_2</replaceable>
p5-subversion-<replaceable>1.8.8_2</replaceable>
py27-hgsubversion-<replaceable>1.6</replaceable>
py27-subversion-<replaceable>1.8.8_2</replaceable>
ruby-subversion-<replaceable>1.8.8_2</replaceable>
subversion-<replaceable>1.8.8_2</replaceable>
subversion-book-<replaceable>4515</replaceable>
subversion-static-<replaceable>1.8.8_2</replaceable>
subversion16-<replaceable>1.6.23_4</replaceable>
subversion17-<replaceable>1.7.16_2</replaceable>
Package names include the version number and, in the case of ports based on python, the version number of the version of python the package was built with. Some ports also have multiple versions available. In the case of <application>Subversion</application>, there are different versions available, as well as different compile options. In this case, the statically linked version of <application>Subversion</application>. When indicating which package to install, it is best to specify the application by the port origin, which is the path in the ports tree. Repeat the <command>pkg search</command> with <option>-o</option> to list the origin of each package:
<prompt>#</prompt> <userinput>pkg search -o <replaceable>subversion</replaceable></userinput>
devel/git-subversion
java/java-subversion
devel/p5-subversion
devel/py-hgsubversion
devel/py-subversion
devel/ruby-subversion
devel/subversion16
devel/subversion17
devel/subversion
devel/subversion-book
devel/subversion-static
Searching by shell globs, regular expressions, exact match, by description, or any other field in the repository database is also supported by <command>pkg search</command>. After installing <package>ports-mgmt/pkg</package> or <package>ports-mgmt/pkg-devel</package>, see <citerefentry><refentrytitle>pkg-search</refentrytitle><manvolnum>8</manvolnum></citerefentry> for more details.
If the Ports Collection is already installed, there are several methods to query the local version of the ports tree. To find out which category a port is in, type <command>whereis <replaceable>file</replaceable></command>, where <replaceable>file</replaceable> is the program to be installed:
<prompt>#</prompt> <userinput>whereis lsof</userinput>
lsof: /usr/ports/sysutils/lsof
Alternately, an <citerefentry><refentrytitle>echo</refentrytitle><manvolnum>1</manvolnum></citerefentry> statement can be used:
<prompt>#</prompt> <userinput>echo /usr/ports/*/*lsof*</userinput>
/usr/ports/sysutils/lsof
Note that this will also return any matched files downloaded into the <filename>/usr/ports/distfiles</filename> directory.
Another way to find software is by using the Ports Collection's built-in search mechanism. To use the search feature, <application>cd</application> to <filename>/usr/ports</filename> then run <command>make search name=program-name</command> where <replaceable>program-name</replaceable> is the name of the software. For example, to search for <command>lsof</command>:
<prompt>#</prompt> <userinput>cd /usr/ports</userinput>
<prompt>#</prompt> <userinput>make search name=lsof</userinput>
Port: lsof-4.88.d,8
Path: /usr/ports/sysutils/lsof
Info: Lists information about open files (similar to fstat(1))
Maint: ler@lerctr.org
Index: sysutils
B-deps:
R-deps:
The built-in search mechanism uses a file of index information. If a message indicates that the <filename>INDEX</filename> is required, run <command>make fetchindex</command> to download the current index file. With the <filename>INDEX</filename> present, <command>make search</command> will be able to perform the requested search.
The <quote>Path:</quote> line indicates where to find the port.
To receive less information, use the <command>quicksearch</command> feature:
<prompt>#</prompt> <userinput>cd /usr/ports</userinput>
<prompt>#</prompt> <userinput>make quicksearch name=lsof</userinput>
Port: lsof-4.88.d,8
Path: /usr/ports/sysutils/lsof
Info: Lists information about open files (similar to fstat(1))
For more in-depth searching, use <command>make search key=<replaceable>string</replaceable></command> or <command>make quicksearch key=<replaceable>string</replaceable></command>, where <replaceable>string</replaceable> is some text to search for. The text can be in comments, descriptions, or dependencies in order to find ports which relate to a particular subject when the name of the program is unknown.
search
quicksearch
When using <_:buildtarget-1/> or <_:buildtarget-2/>, the search string is case-insensitive. Searching for <quote>LSOF</quote> will yield the same results as searching for <quote>lsof</quote>.

Loading…

No matching activity found.

Browse all component changes

Glossary

English English
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: listitem/para
Flags
read-only
Source string location
book.translate.xml:9426
String age
a year ago
Source string age
a year ago
Translation file
books/handbook.pot, string 1559