From owner-freebsd-questions@FreeBSD.ORG Wed Sep 20 19:41:05 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 D2F7216A4A0 for ; Wed, 20 Sep 2006 19:41:05 +0000 (UTC) (envelope-from andrewgould@yahoo.com) Received: from web35302.mail.mud.yahoo.com (web35302.mail.mud.yahoo.com [66.163.179.96]) by mx1.FreeBSD.org (Postfix) with SMTP id A2E5B43D64 for ; Wed, 20 Sep 2006 19:40:54 +0000 (GMT) (envelope-from andrewgould@yahoo.com) Received: (qmail 36928 invoked by uid 60001); 20 Sep 2006 19:40:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AZ+xKm9l5mhzHl2v56dXMiAReUffQr0GsS1woSo8ea+jFMDxkgqYczsq066moNJ4dGGydRmWMP0ln1RUAFPOmpxb9D0ntrZFAI6FoLe4uBJ+rYhS5UrQibOIIkvHwOJYWmmUw6Mu3BjmBi29JJ5Pa3iH67A0cMcIe176PUmZHMM= ; Message-ID: <20060920194054.36922.qmail@web35302.mail.mud.yahoo.com> Received: from [206.255.31.21] by web35302.mail.mud.yahoo.com via HTTP; Wed, 20 Sep 2006 12:40:54 PDT Date: Wed, 20 Sep 2006 12:40:54 -0700 (PDT) From: Andrew Gould To: RW , freebsd-questions@freebsd.org In-Reply-To: <200609202012.23996.list-freebsd-2004@morbius.sent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: 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:41:05 -0000 Thanks. --- 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. > > What I think is a better idea is to get a list of > the leaf origins, and let > the ports sytem sort out the rest itself - you may > end up with a cleaner set > of dependencies. See the thread "Moving to new PC" > above for a way to get > these from portmanager. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >