extracting base names from package listing
kris at obsecurity.org
Wed Sep 20 12:49:21 PDT 2006
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?
> What you actually want is the origins, pkg_info -oq "*" will give you that.
Or look up the package name in the INDEX file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060920/7ff2d461/attachment.pgp
More information about the freebsd-questions