From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3725 invoked by uid 1002); 19 Aug 2003 02:31:50 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 2980 invoked from network); 19 Aug 2003 02:31:50 -0000 Date: Mon, 18 Aug 2003 22:31:47 -0400 From: Owen Gunden To: gentoo-dev@gentoo.org Message-ID: <20030819023147.GA24048@force.stwing.upenn.edu> Mail-Followup-To: gentoo-dev@gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: [gentoo-dev] how to determine if a virtual is installed, from the shell? X-Archives-Salt: da0148a8-71f3-487b-bdb4-65840b88573a X-Archives-Hash: b809f655af396e1fb049d56bd38748d2 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? TIA, Owen -- gentoo-dev@gentoo.org mailing list