From owner-freebsd-ports@FreeBSD.ORG Thu Apr 18 06:46:29 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F20B6E70 for ; Thu, 18 Apr 2013 06:46:29 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (unknown [IPv6:2620:64:0:1:223:7dff:fea2:c8f2]) by mx1.freebsd.org (Postfix) with ESMTP id DE398E88 for ; Thu, 18 Apr 2013 06:46:29 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id EF41B2AA471; Thu, 18 Apr 2013 00:46:25 -0600 (MDT) Received: by night.db.net (Postfix, from userid 1000) id 443C91CC18; Thu, 18 Apr 2013 01:46:25 -0500 (EST) Date: Thu, 18 Apr 2013 01:46:25 -0500 From: Diane Bruce To: Beeblebrox Subject: Re: pkg info list sources? Message-ID: <20130418064625.GA11517@night.db.net> References: <1366266215096-5804719.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1366266215096-5804719.post@n5.nabble.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2013 06:46:30 -0000 On Wed, Apr 17, 2013 at 11:23:35PM -0700, Beeblebrox wrote: > I want a list of all installed packages in the form category/port. I will > feed the list to poudriere. > $ pkg info -ao > pkg.list > gives a list but needs cleaning - gcc-4.6.3: lang/gcc > How can I remove the left part of the colon and keep the trailing bit? pkg info -ao |cut -f 2 -d ' ' - -- - db@FreeBSD.org db@db.net http://www.db.net/~db