public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Spider <spider@gentoo.org>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] how to determine if a virtual is installed, from the shell?
Date: Tue, 19 Aug 2003 04:43:50 +0200	[thread overview]
Message-ID: <20030819044350.07c7c89e.spider@gentoo.org> (raw)
In-Reply-To: <20030819023147.GA24048@force.stwing.upenn.edu>

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

begin  quote
On Mon, 18 Aug 2003 22:31:47 -0400
Owen Gunden <ogunden@stwing.upenn.edu> wrote:

> So hypothetically, if I wanted to write a shell script that behaved
> differently if virtual/mta was installed than if it was not, what
> would I do?
> 
> I'd like a command that would return a specific exit status based on
> whether or not the virtual dependency is there.  But frankly I'm
> willing to use grep for a nice gross hack too.  Tell the truth, I
> don't even know how to do this for regular (non-virtual) packages.
> 
> I've played around with qpkg, but with little luck.  Is there any way
> to do this with or without qpkg?
> 


cat /var/cache/edb/virtuals   ...  this should give you the format
enough to work shell magic with it :)


//Spider


-- 
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-08-19  2:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-19  2:31 [gentoo-dev] how to determine if a virtual is installed, from the shell? Owen Gunden
2003-08-19  2:43 ` Spider [this message]
2003-08-19  2:49   ` Owen Gunden
2003-08-19  6:25   ` Mamoru KOMACHI

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=20030819044350.07c7c89e.spider@gentoo.org \
    --to=spider@gentoo.org \
    --cc=gentoo-dev@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