From owner-svn-doc-all@FreeBSD.ORG Sun May 4 19:59:39 2014 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 497A7F19; Sun, 4 May 2014 19:59:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3618C18E3; Sun, 4 May 2014 19:59:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s44Jxdix054322; Sun, 4 May 2014 19:59:39 GMT (envelope-from bcr@svn.freebsd.org) Received: (from bcr@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s44Jxd7d054321; Sun, 4 May 2014 19:59:39 GMT (envelope-from bcr@svn.freebsd.org) Message-Id: <201405041959.s44Jxd7d054321@svn.freebsd.org> From: Benedict Reuschling Date: Sun, 4 May 2014 19:59:39 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r44756 - head/en_US.ISO8859-1/books/handbook/ports X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2014 19:59:39 -0000 Author: bcr Date: Sun May 4 19:59:38 2014 New Revision: 44756 URL: http://svnweb.freebsd.org/changeset/doc/44756 Log: Add a section on how to search for ports using pkg search. I've updated the submitted patch slightly by wrapping the version numbers of the resulting ports in the example in s so that people know that they might have a different output as time goes by. I also rephrased a paragraph so that it does not start with a tag. PR: 187351 Submitted by: Allan Jude Modified: head/en_US.ISO8859-1/books/handbook/ports/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/ports/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/ports/chapter.xml Sun May 4 19:29:54 2014 (r44755) +++ head/en_US.ISO8859-1/books/handbook/ports/chapter.xml Sun May 4 19:59:38 2014 (r44756) @@ -202,7 +202,9 @@ for security issues related to the application or install ports-mgmt/portaudit. Once installed, type portaudit -F -a to check all installed - applications for known vulnerabilities. + applications for known vulnerabilities. If you are using + pkg, the audit functionality is + built in. Simply run: pkg audit -F. The remainder of this chapter explains how to use packages @@ -249,6 +251,61 @@ + + pkg + search + + + To search the binary package + repository for an application: + + &prompt.root; pkg search subversion +git-subversion-1.9.2 +java-subversion-1.8.8_2 +p5-subversion-1.8.8_2 +py27-hgsubversion-1.6 +py27-subversion-1.8.8_2 +ruby-subversion-1.8.8_2 +subversion-1.8.8_2 +subversion-book-4515 +subversion-static-1.8.8_2 +subversion16-1.6.23_4 +subversion17-1.7.16_2 + + Package names include the version number and in 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 case of + subversion there are different + versions available, as well as different compile options. + In this case, the staticly linked version of + subversion. 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 pkg search with + to list the origin of each + package: + + &prompt.root; pkg search -o subversion +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 pkg search. + See &man.pkg-search.8; 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