LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-25-2016, 02:54 PM   #1
trey5498
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Rep: Reputation: Disabled
Question List of installed patches?


What is the command to list the patches that are already installed?

Last edited by trey5498; 02-26-2016 at 02:31 PM.
 
Old 02-25-2016, 03:55 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by trey5498 View Post
What is the command to list the patches that are already installed?
Hi...

Welcome to the forum

First, please read the information here. The more details we have, the better we can help you.

What version of SUSE or OpenSUSE are you using and for what programs(s)are you needing (installed) patch information on?

Regards...

Last edited by ardvark71; 02-25-2016 at 03:58 PM. Reason: Corrections.
 
Old 02-25-2016, 05:47 PM   #3
trey5498
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
Hi...

Welcome to the forum

First, please read the information here. The more details we have, the better we can help you.

What version of SUSE or OpenSUSE are you using and for what programs(s)are you needing (installed) patch information on?

Regards...

Sorry for the delay. The version of SuSE we am using 11.3 and we update our servers using the Yast GUI. Our operation is predominately Windows (about 4 to 6 Linux servers and approx 250 windows server) so we don't have a Linux guru in the office, unfortunately.

I did not know that SuSE varied that much from version to version, so I assumed that it was core commands we the same. Since we used the GUI to apply the updates and we have an alert after the updates were installed, we were looking for a command line that we could use "|grep <name of update>" to view if it was already installed.

Any ideas?
 
Old 02-25-2016, 07:42 PM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by trey5498 View Post
Any ideas?
Hi...

I'm not sure if it will help but take a look at the section "Updating Software with Zypper" here.

Someone else on the forum might have a better answer but if not, you can try asking at the SUSE forum here, or the OpenSUSE forum here.

Regards...

Last edited by ardvark71; 02-25-2016 at 07:45 PM. Reason: Correction.
 
Old 02-26-2016, 12:03 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this IS SUSE Enterprise Linux Server 11 service pack 3
SELS 11sp3

and NOT "OpenSUSE 11.3 " end of life back in Jan of 2012

one you have to have a support contract for and the other is long past it's End Of Life

opensuse 11.3
opensuse 11.4
opensuse 12.1
opensuse 12.2
opensuse 12.3
opensuse 13.1

are all unsupported
https://en.opensuse.org/Lifetime

as for patches
did you install any ?
and rebuild the rpm's ?

there are drpm's but they are not the default

if you need to know the last updates installed
look in the zypper install log in
/var/log

please read the zypper manual page
Code:
su -
man zypper

Last edited by John VV; 02-26-2016 at 12:06 AM.
 
Old 02-26-2016, 01:56 AM   #6
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi,

Quote:
Originally Posted by trey5498 View Post
Since we used the GUI to apply the updates and we have an alert after the updates were installed, we were looking for a command line that we could use "|grep <name of update>" to view if it was already installed.
Do you recall what the alert said? Was it an error, or just a notification, for example saying that a reboot is required? Alternately do you know which patches these were?

Generally if an update failed, it should still be on the list of available updates, so running the update again should answer your question.

You might also find more info in the logs - look at /var/log/zypp/history and /var/log/zypper.log.

Regards,

Clifford
 
Old 02-26-2016, 02:23 PM   #7
trey5498
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by cliffordw View Post
Hi,



Do you recall what the alert said? Was it an error, or just a notification, for example saying that a reboot is required? Alternately do you know which patches these were?

Generally if an update failed, it should still be on the list of available updates, so running the update again should answer your question.

You might also find more info in the logs - look at /var/log/zypp/history and /var/log/zypper.log.

Regards,

Clifford

this did help to list what was needed, but I think I found the command. It ended up being
Code:
rpm -an|grep <patch name>
. However the history will help to allow me to see a failure if it happens.
 
Old 02-26-2016, 02:29 PM   #8
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by trey5498 View Post
this did help to list what was needed, but I think I found the command. It ended up being
Code:
rpm -an|grep <patch name>
. However the history will help to allow me to see a failure if it happens.
Hi...

If you consider this issue resolved, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks!

Regards...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to list the installed patches sandy_76 Linux - Software 2 01-14-2010 12:49 PM
Whats the best way to get a list of patches for RHEL 4.5 or higher? athreck Linux - Enterprise 2 04-20-2009 06:46 AM
List Installed Patches by Live Update? ubyt3m3 Solaris / OpenSolaris 4 07-07-2008 01:18 PM
Command to get list of patches applied pavan_pnv Linux - Newbie 7 03-12-2008 05:29 PM
where do patches and software get installed to? jcai Linux - Newbie 3 01-11-2006 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration