[opensuse] openSUSE-13.1: List installed patches
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. IIRC, there used to be some way to do that on earlier versions of SUSE/openSUSE. It is helpful for me to be able to go back and check to see if the patch for, e.g., a particular CVE or Bugtraq ID, had already been installed on the system. Is this info stored anywhere on the system? If not, is there a way to make it so? Thanks, --Phil -- Phililp Amadeo Saeli psaeli@zorodyne.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tuesday, April 22, 2014 05:20:15 PM 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.
IIRC, there used to be some way to do that on earlier versions of SUSE/openSUSE.
It is helpful for me to be able to go back and check to see if the patch for, e.g., a particular CVE or Bugtraq ID, had already been installed on the system. Is this info stored anywhere on the system? If not, is there a way to make it so?
Thanks,
--Phil
Do you mean all installed packages on your system? Try this awk -F "|" '!/^#/ { if ( $2 == "install" ) print $1, ":", $3"-"$4}' /var/log/zypp/history | more Hope is helpful for you. Regards, R. Chung -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Ricardo Chung <ricardo.a.chung@gmail.com> [2014-04-22 17:57]:
On Tuesday, April 22, 2014 05:20:15 PM Philip Amadeo Saeli wrote:
Does anyone know how to list the patches already installed on an openSUSE-13.1 system?
Do you mean all installed packages on your system? Try this
awk -F "|" '!/^#/ { if ( $2 == "install" ) print $1, ":", $3"-"$4}' /var/log/zypp/history | more
Hope is helpful for you.
Nice. Not quite what I needed this time, but appears to be useful for other circumstances. I was looking for a list of the patches (so I could query the patches for the patch info, e.g., via "zypper info -t patch openSUSE-2014-22"), not the assoc packages. Thanks, --Phil -- Philip Amadeo Saeli psaeli@zorodyne.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/22/2014 06:57 PM, Ricardo Chung wrote:
Do you mean all installed packages on your system? Try this
awk -F "|" '!/^#/ { if ( $2 == "install" ) print $1, ":", $3"-"$4}' /var/log/zypp/history | more
That won't give you ALL packages, only those install since the last time the zypper logs were rotated, which is done by /etc/cron.daily/logrotate So possibly you might only have the ones installed today.. -- "Be brave enough to live creatively. The creative is the place where no one else has ever been. You have to leave the city of your comfort and go into the wilderness of your intuition. You can't get there by bus, only by hard work, risking, and by not quite knowing what you"re doing. What you"ll discover will be wonderful: yourself." -- Alan Alda. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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.
IIRC, there used to be some way to do that on earlier versions of SUSE/openSUSE.
It is helpful for me to be able to go back and check to see if the patch for, e.g., a particular CVE or Bugtraq ID, had already been installed on the system. Is this info stored anywhere on the system? If not, is there a way to make it so?
Thanks,
--Phil
Hi With the pch option zypper pch |grep "Installed" -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-7-desktop up 1 day 3:49, 3 users, load average: 0.03, 0.03, 0.05 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Malcolm <malcolmlewis@cableone.net> [2014-04-22 19:01]:
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?
Hi With the pch option
zypper pch |grep "Installed"
Thanks! That was exactly what I needed. --Phil -- Philip Amadeo Saeli psaeli@zorodyne.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Tue, 22 Apr 2014 19:01:34 -0500 Malcolm <malcolmlewis@cableone.net> пишет:
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.
IIRC, there used to be some way to do that on earlier versions of SUSE/openSUSE.
It is helpful for me to be able to go back and check to see if the patch for, e.g., a particular CVE or Bugtraq ID, had already been installed on the system. Is this info stored anywhere on the system? If not, is there a way to make it so?
Thanks,
--Phil
Hi With the pch option
zypper pch |grep "Installed"
Or to avoid grep zypper se -t patch -i -s -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed 23 Apr 2014 06:21:37 AM CDT, Andrey Borzenkov wrote:
В Tue, 22 Apr 2014 19:01:34 -0500 Malcolm <malcolmlewis@cableone.net> пишет:
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.
IIRC, there used to be some way to do that on earlier versions of SUSE/openSUSE.
It is helpful for me to be able to go back and check to see if the patch for, e.g., a particular CVE or Bugtraq ID, had already been installed on the system. Is this info stored anywhere on the system? If not, is there a way to make it so?
Thanks,
--Phil
Hi With the pch option
zypper pch |grep "Installed"
Or to avoid grep
zypper se -t patch -i -s
Hi Yes that works for the moment as well, but doesn't on SLE (cross distro scripts), plus the pch switch offers more information -- Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890) openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-7-desktop up 1 day 8:13, 3 users, load average: 0.07, 0.05, 0.05 CPU Intel® B840@1.9GHz | GPU Intel® Sandybridge Mobile -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, Apr 22, 2014 at 11:28:25PM -0500, Malcolm wrote:
On Wed 23 Apr 2014 06:21:37 AM CDT, Andrey Borzenkov wrote:
В Tue, 22 Apr 2014 19:01:34 -0500 Malcolm <malcolmlewis@cableone.net> пишет:
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.
IIRC, there used to be some way to do that on earlier versions of SUSE/openSUSE.
It is helpful for me to be able to go back and check to see if the patch for, e.g., a particular CVE or Bugtraq ID, had already been installed on the system. Is this info stored anywhere on the system? If not, is there a way to make it so?
Thanks,
--Phil
Hi With the pch option
zypper pch |grep "Installed"
Or to avoid grep
zypper se -t patch -i -s
Hi Yes that works for the moment as well, but doesn't on SLE (cross distro scripts), plus the pch switch offers more information
also works: zypper lp --all Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Apr 23, 2014 at 10:02 AM, Marcus Meissner <meissner@suse.de> wrote:
Hi With the pch option
zypper pch |grep "Installed"
Or to avoid grep
zypper se -t patch -i -s
Hi Yes that works for the moment as well, but doesn't on SLE (cross distro scripts), plus the pch switch offers more information
also works: zypper lp --all
It does not show installed patches unless I miss something obvious. At least not on SLES11 SP3 (this is what I have access to right now). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Apr 23, 2014 at 10:07:47AM +0400, Andrey Borzenkov wrote:
On Wed, Apr 23, 2014 at 10:02 AM, Marcus Meissner <meissner@suse.de> wrote:
Hi With the pch option
zypper pch |grep "Installed"
Or to avoid grep
zypper se -t patch -i -s
Hi Yes that works for the moment as well, but doesn't on SLE (cross distro scripts), plus the pch switch offers more information
also works: zypper lp --all
It does not show installed patches unless I miss something obvious. At least not on SLES11 SP3 (this is what I have access to right now).
It seems to work for me on a SLES 11 SP3 machine. e.g. it lists the MozillaFirefox patch as "not needed" and the newest Firefox 24.4.0esr is installed. Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Apr 23, 2014 at 10:09 AM, Marcus Meissner <meissner@suse.de> wrote:
On Wed, Apr 23, 2014 at 10:07:47AM +0400, Andrey Borzenkov wrote:
On Wed, Apr 23, 2014 at 10:02 AM, Marcus Meissner <meissner@suse.de> wrote:
Hi With the pch option
zypper pch |grep "Installed"
Or to avoid grep
zypper se -t patch -i -s
Hi Yes that works for the moment as well, but doesn't on SLE (cross distro scripts), plus the pch switch offers more information
also works: zypper lp --all
It does not show installed patches unless I miss something obvious. At least not on SLES11 SP3 (this is what I have access to right now).
It seems to work for me on a SLES 11 SP3 machine.
e.g. it lists the MozillaFirefox patch as "not needed" and the newest Firefox 24.4.0esr is installed.
Well, it is not quite exactly the same. Patch may be unneeded because it is either already installed or because package it patches is not present. So it does not directly answer original question (how to list installed patches). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Apr 23, 2014 at 10:12:58AM +0400, Andrey Borzenkov wrote:
On Wed, Apr 23, 2014 at 10:09 AM, Marcus Meissner <meissner@suse.de> wrote:
On Wed, Apr 23, 2014 at 10:07:47AM +0400, Andrey Borzenkov wrote:
On Wed, Apr 23, 2014 at 10:02 AM, Marcus Meissner <meissner@suse.de> wrote:
> Hi > With the pch option > > zypper pch |grep "Installed" >
Or to avoid grep
zypper se -t patch -i -s
Hi Yes that works for the moment as well, but doesn't on SLE (cross distro scripts), plus the pch switch offers more information
also works: zypper lp --all
It does not show installed patches unless I miss something obvious. At least not on SLES11 SP3 (this is what I have access to right now).
It seems to work for me on a SLES 11 SP3 machine.
e.g. it lists the MozillaFirefox patch as "not needed" and the newest Firefox 24.4.0esr is installed.
Well, it is not quite exactly the same. Patch may be unneeded because it is either already installed or because package it patches is not present. So it does not directly answer original question (how to list installed patches).
Well, patches are not actually installed, as they only include package >= version-release relations that must be met by the system. I think your intented behaviour currently needs some manual scripting. Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Apr 23, 2014 at 10:14 AM, Marcus Meissner <meissner@suse.de> wrote:
On Wed, Apr 23, 2014 at 10:12:58AM +0400, Andrey Borzenkov wrote:
On Wed, Apr 23, 2014 at 10:09 AM, Marcus Meissner <meissner@suse.de> wrote:
On Wed, Apr 23, 2014 at 10:07:47AM +0400, Andrey Borzenkov wrote:
On Wed, Apr 23, 2014 at 10:02 AM, Marcus Meissner <meissner@suse.de> wrote:
>> Hi >> With the pch option >> >> zypper pch |grep "Installed" >> > >Or to avoid grep > >zypper se -t patch -i -s > Hi Yes that works for the moment as well, but doesn't on SLE (cross distro scripts), plus the pch switch offers more information
also works: zypper lp --all
It does not show installed patches unless I miss something obvious. At least not on SLES11 SP3 (this is what I have access to right now).
It seems to work for me on a SLES 11 SP3 machine.
e.g. it lists the MozillaFirefox patch as "not needed" and the newest Firefox 24.4.0esr is installed.
Well, it is not quite exactly the same. Patch may be unneeded because it is either already installed or because package it patches is not present. So it does not directly answer original question (how to list installed patches).
Well, patches are not actually installed, as they only include
package >= version-release
relations that must be met by the system.
That's fine as long as "Installed" in zypper output means "installed package version is >= than required by patch".
I think your intented behaviour currently needs some manual scripting.
This thread gives two zypper invocations that directly answer it :) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Andrey Borzenkov <arvidjaar@gmail.com> [2014-04-22 21:21]:
÷ Tue, 22 Apr 2014 19:01:34 -0500 Malcolm <malcolmlewis@cableone.net> ÐÉÛÅÔ:
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. 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? 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). Thanks! --PHil -- Philip Amadeo Saeli psaeli@zorodyne.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, Apr 23, 2014 at 10:57 AM, Philip Amadeo Saeli <psaeli@zorodyne.com> wrote:
* Andrey Borzenkov <arvidjaar@gmail.com> [2014-04-22 21:21]:
В Tue, 22 Apr 2014 19:01:34 -0500 Malcolm <malcolmlewis@cableone.net> пишет:
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
* Andrey Borzenkov <arvidjaar@gmail.com> [2014-04-23 02:33]:
On Wed, Apr 23, 2014 at 10:57 AM, Philip Amadeo Saeli <psaeli@zorodyne.com> wrote:
* Andrey Borzenkov <arvidjaar@gmail.com> [2014-04-22 21:21]:
Ð Tue, 22 Apr 2014 19:01:34 -0500 Malcolm <malcolmlewis@cableone.net> пиÑеÑ:
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.
That makes sense given what I've observed. Does that imply, however, that the list of "installed" patches is derived by reverse-matching the list of currently installed RPMs against the patch's minimal RPM versions (which, apparently, are listed in a "Conflicts" section)? In other words, that there is no actual list of applied patches on the system and that the list is derived from the repo metadata and the installed RPM metadata?
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.
Yes! Thanks, --Phil -- Philip Amadeo Saeli psaeli@zorodyne.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Andrey Borzenkov
-
Anton Aylward
-
Malcolm
-
Marcus Meissner
-
Philip Amadeo Saeli
-
Ricardo Chung