On Wed, Apr 23, 2014 at 10:57 AM, Philip Amadeo Saeli
* Andrey Borzenkov
[2014-04-22 21:21]: В Tue, 22 Apr 2014 19:01:34 -0500 Malcolm
пишет: On Tue 22 Apr 2014 05:20:15 PM CDT, Philip Amadeo Saeli wrote:
Does anyone know how to list the patches already installed on an openSUSE-13.1 system? I'd like a detailed output of the patches installed (not the RPMs or files!) similar to that which can be obtained via zypper for available patches.
Hi With the pch option
zypper pch |grep "Installed"
Or to avoid grep
zypper se -t patch -i -s
Interesting. I tried the above both with and without the "-s" option and the output contained very different info (though both for only installed patches as desired). Zypper is a weird and wonderful program, though some of the behavior WRT what is listed in the man page doesn't seem very intuitive to me.
"-s" lists extended information including versions so I personally find it more or less consistent (for patches it lists patch number which is exactly what I needed). That is the same for packages.
Now, anyone know how to display the time the patch had been applied (instlled) (other than by looking up the assoc RPMs and their inst times), preferably via zypper cmds?
As was explained elsewhere, patch is not installed in the proper sense. What gets installed is RPM, and patch simply lists minimal version of RPM. What follows, is - you need to check when RPM was installed - you do not have direct one-to-one match between patches and install date. Basically, if you have three patch versions that supersede each other and install the latest one all three patches will appear as "installed" but you installed RPM only once.
Also, from the above, it seems clear to me that there is quite a bit of metadata the zypper keeps on hand. Is there some type of FORMAT capability with assoc directives, (e.g., "%D" to print out the date) to allow customizing of the info listings? (cf: "date" or "find" for a couple of Linux cmds with such capabilities).
Yes, a bit of scripting support around zypper queries would be nice. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org