From: Ned Ludd <solar@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] How to extract the version/revision of an installed package?
Date: Tue, 25 Nov 2008 16:15:09 -0800 [thread overview]
Message-ID: <1227658509.18783.81.camel@hangover> (raw)
In-Reply-To: <492C2241.8090306@oversi.com>
On Tue, 2008-11-25 at 18:05 +0200, Amit Dor-Shifer wrote:
> 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)
>
qatom $(qlist -ICv sys-apps/portage) | awk '{print $3}'
--
Ned Ludd <solar@gentoo.org>
Gentoo Linux
next prev parent reply other threads:[~2008-11-26 0:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 16:05 [gentoo-portage-dev] How to extract the version/revision of an installed package? Amit Dor-Shifer
2008-11-25 16:13 ` Andrew Gaffney
2008-11-25 16:19 ` Andrew Gaffney
2008-11-25 16:43 ` Amit Dor-Shifer
2008-11-25 17:03 ` René 'Necoro' Neumann
2008-11-26 11:13 ` Amit Dor-Shifer
2008-11-27 7:08 ` Alec Warner
2008-11-25 22:03 ` Brian Harring
2008-11-26 0:18 ` Ned Ludd
2008-11-26 0:31 ` Brian Harring
2008-11-26 1:24 ` Ned Ludd
2008-11-26 4:54 ` Zac Medico
2008-11-27 2:03 ` Brian Harring
2008-11-26 0:15 ` Ned Ludd [this message]
2008-11-26 8:29 ` Fabian Groffen
2008-11-26 9:29 ` Amit Dor-Shifer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1227658509.18783.81.camel@hangover \
--to=solar@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox