Matthias Schmidt

Philipps University Marburg
Department of Mathematics and Computer Science

University logo

pkg_search

Overview

pkg_search is a little script for FreeBSD, DragonFlyBSD and NetBSD. It queries the appropriate database file for a given package name.

News

  • The FreeBSD version is present in the ports tree. To install pkg_search go to /usr/ports/ports-mgmt/pkg_search/ and type make install as root.
Version 1.2
  • Check if running on an unsupported OS (eg Linux). Thanks to Juli Mallet.
  • If pkg_search cannot find a ports tree under FreeBSD it creates /usr/ports and fetchs the INDEX file automatically. Due to this change pkg_search can run out-of-the-box without an installed ports tree. Thanks to Xin Li on cvs-src@ for this hint.
Older news
  • pkg_search is included within DragonFly base :). Look here.
  • Added -r option. Taken from David E. O'Brien (obrien@). Look here

SYNOPSIS

pkg_search [-ikr] name

DESCRIPTION

pkg_search querys the appropriate database file on FreeBSD, DragonFlyBSD and NetBSD for a given package name.

The options are as follows:
   -i           Print verbose information (Ports directory, URL, depencies)

   -k           Also query the Info and WWW field.

   -r           Print the directory within the Ports Collection where the
                port lives.

   name         Required package name.

EXAMPLES

The following is an example of a typical usage of the pkg_search command:

   pkg_search -i xorg

AUTHOR

pkg_search was written by Matthias Schmidt and is licensed under a BSD license.

SCREENSHOT

% uname -s
FreeBSD

# pkg_search cyrus-sasl
cyrus-sasl-1.5.28_5 	RFC 2222 SASL (Simple Authentication and Security Layer)
cyrus-sasl-2.1.22   	RFC 2222 SASL (Simple Authentication and Security Layer)
cyrus-sasl-ldapdb-2.1.22	SASL LDAPDB auxprop plugin
cyrus-sasl-saslauthd-2.1.22	SASL authentication server for cyrus-sasl2

# pkg_search -i cyrus-sasl-2.1.22
Name	: cyrus-sasl-2.1.22-50
Dir	: /usr/ports/security/cyrus-sasl2                   
Desc	: RFC 2222 SASL (Simple Authentication and Security Layer)
URL	: http://cyrusimap.web.cmu.edu/                     
Deps	: 

DOWNLOAD

  • pkg_search is installed by default on DragonFly BSD so you don't need to download it.
  • pkg_search-1.2.tar.gz MD5: 9eba707559fbd8c97d547161fb335cbe

Archive contains all required files and a Makefile.

Copyleft (l) 2002-06 by Matthias Schmidt.