From owner-freebsd-questions@FreeBSD.ORG Wed Sep 20 19:49:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69B4D16A403 for ; Wed, 20 Sep 2006 19:49:21 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5310F43D4C for ; Wed, 20 Sep 2006 19:49:20 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 615581A3C1A; Wed, 20 Sep 2006 12:49:19 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 43E6C5164F; Wed, 20 Sep 2006 15:49:16 -0400 (EDT) Date: Wed, 20 Sep 2006 15:49:16 -0400 From: Kris Kennaway To: RW Message-ID: <20060920194915.GA84181@xor.obsecurity.org> References: <20060920184533.98954.qmail@web35303.mail.mud.yahoo.com> <200609202012.23996.list-freebsd-2004@morbius.sent.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <200609202012.23996.list-freebsd-2004@morbius.sent.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: extracting base names from package listing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 19:49:21 -0000 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 20, 2006 at 08:12:22PM +0100, RW wrote: > On Wednesday 20 September 2006 19:45, Andrew Gould wrote: > > pkg_info provides a nice listing of package names that > > include version numbers. I'd like to have a list of > > the names without the version numbers so that I can > > write a script to install the newer versions after a > > clean installation. > > > > Looking at the package names, I'm having a hard time > > coming up with an algorithm for separating the package > > names from the version numbers. Many package names > > have dashes (postgresql-server), and some have letters > > in the version numbers (libid3tag-0.15.1b). > > > > Does anyone have a good way of separating the package > > names from the version numbers? > > > > Is there a better way of identifying and installing a > > set of packages after a clean installation? >=20 > What you actually want is the origins, pkg_info -oq "*" will give you tha= t. Or look up the package name in the INDEX file. Kris --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEZs7Wry0BWjoQKURAps5AKCVNe6FZ1aOsdSAr2QgY3hldSgqpgCeLBCb G2dFr9Qxz8NZTsKFDSz5FpU= =brS5 -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--