Date: Wed, 20 Sep 2006 15:49:16 -0400 From: Kris Kennaway <kris@obsecurity.org> To: RW <list-freebsd-2004@morbius.sent.com> Cc: freebsd-questions@freebsd.org Subject: Re: extracting base names from package listing Message-ID: <20060920194915.GA84181@xor.obsecurity.org> In-Reply-To: <200609202012.23996.list-freebsd-2004@morbius.sent.com> References: <20060920184533.98954.qmail@web35303.mail.mud.yahoo.com> <200609202012.23996.list-freebsd-2004@morbius.sent.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060920194915.GA84181>