From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1L50Pl-0000zA-6k for garchives@archives.gentoo.org; Tue, 25 Nov 2008 16:05:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25673E00A6; Tue, 25 Nov 2008 16:05:25 +0000 (UTC) Received: from mail.oversi.com (oversrv1.oversi.com [209.88.189.2]) by pigeon.gentoo.org (Postfix) with ESMTP id D0C46E00A6 for ; Tue, 25 Nov 2008 16:05:24 +0000 (UTC) Received: from [10.2.2.28] (unknown [10.2.2.28]) by mail.oversi.com (Postfix) with ESMTP id 187744A8844 for ; Tue, 25 Nov 2008 18:03:04 +0200 (IST) Message-ID: <492C2241.8090306@oversi.com> Date: Tue, 25 Nov 2008 18:05:21 +0200 From: Amit Dor-Shifer User-Agent: Thunderbird 2.0.0.14 (X11/20080519) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] How to extract the version/revision of an installed package? X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 63424ad2-7452-4d65-8cdd-eca5f7e4b31a X-Archives-Hash: 64367016111691be6145dfe3e4ad709c Given the following: # qlist -Iv sys-apps/portage sys-apps/portage-2.1.4.5 How do I safely extract the "2.1.4.5"? (I don't necessarily need to use qlist. Just want to get the version of an installed package within a bash script) 10x Amit