Mailinglist Archive: opensuse (2112 mails)

< Previous Next >
rpm --queryformat, was: [opensuse] openSUSE 11.0 - updates offered without all dependencies
  • From: Sonja Krause-Harder <skh@xxxxxxx>
  • Date: Fri, 1 Aug 2008 16:48:46 +0200
  • Message-id: <20080801144846.GE26787@xxxxxxxxxxxxxxx>
On Fri, Aug 01, 2008 at 03:26:53PM +0200, Michael Roberts wrote:

How can I best find out whether anything currently installed on the
system is coming from a particular repository?

With a bit of luck, rpm --queryformat can help you.

With:

$ rpm -q --queryformat "%{name} -- Distribution: %{distribution} Vendor:
%{vendor}\n" <any packman package>

you can check what packman writes into the Distribution: and Vendor:
tags of their package, and if any of it is usable for your search.

Then with a rather brute-force (for example)

$ rpm -q --queryformat "%{name}: %{distribution}\n" | grep <repository-name>

you can search all your packages.

This example assumes that packman writes repository info into
Distribution, which I actually don't know. The build service uses that
tag.

A list of all tags usable with --queryformat is available with:

$ rpm --queryformat

hope that helps,

Sonja

--
Sonja Krause-Harder (skh@xxxxxxx) SUSE Research & Development
-----------------------------------------------------------------
SUSE Linux Products GmbH GF: Markus Rex, HRB 16746 (AG Nuernberg)

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups