From owner-freebsd-doc@FreeBSD.ORG Fri Mar 7 15:50:01 2014 Return-Path: Delivered-To: freebsd-doc@smarthost.ysv.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 7EFE696C for ; Fri, 7 Mar 2014 15:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5BC3ADCA for ; Fri, 7 Mar 2014 15:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s27Fo1ra019187 for ; Fri, 7 Mar 2014 15:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s27Fo1uZ019186; Fri, 7 Mar 2014 15:50:01 GMT (envelope-from gnats) Resent-Date: Fri, 7 Mar 2014 15:50:01 GMT Resent-Message-Id: <201403071550.s27Fo1uZ019186@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Allan Jude Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8AAE76F6 for ; Fri, 7 Mar 2014 15:41:13 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 770B2D6C for ; Fri, 7 Mar 2014 15:41:13 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s27FfD9n076055 for ; Fri, 7 Mar 2014 15:41:13 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s27FfD6D076048; Fri, 7 Mar 2014 15:41:13 GMT (envelope-from nobody) Message-Id: <201403071541.s27FfD6D076048@cgiserv.freebsd.org> Date: Fri, 7 Mar 2014 15:41:13 GMT From: Allan Jude To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: docs/187351: handbook section on ports does not mention pkg search X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Mar 2014 15:50:01 -0000 >Number: 187351 >Category: docs >Synopsis: handbook section on ports does not mention pkg search >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 07 15:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Allan Jude >Release: 9.2-RELEASE >Organization: ScaleEngine Inc. >Environment: FreeBSD Trooper.HML3.ScaleEngine.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The handbook section "5.3. Finding Software" does not mention 'pkg search' as a way to find software. Even for searching the ports tree, this can be useful, but it is especially useful when searching for a package >How-To-Repeat: >Fix: Patch attached Patch attached with submission follows: Index: ports/chapter.xml =================================================================== --- ports/chapter.xml (revision 44112) +++ ports/chapter.xml (working copy) @@ -197,9 +197,11 @@ Before installing any application, check http://vuxml.freebsd.org/ for security issues related to the application or install - ports-mgmt/portaudit. Once installed, type + 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 @@ -246,6 +248,61 @@ + + pkg + search + + + To search the binary package + repository for an application: + + &prompt.root; pkg search subversion +git-subversion-1.8.5.2 +java-subversion-1.8.5 +p5-subversion-1.8.5 +py27-hgsubversion-1.5.1 +py27-subversion-1.8.5 +ruby-subversion-1.8.5 +subversion-1.6.23_2 +subversion-1.7.14 +subversion-1.8.5 +subversion-book-4515 +subversion-static-1.8.5 + + 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 + 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, 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 + + pkg search also supports searching + using shell globs, regular expressions, exact match, + search by description, or any other field in the + repository database. See &man.pkg-search.8; + + + 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 >Release-Note: >Audit-Trail: >Unformatted: