# Install patches

**URL:** <https://forums.suse.com/t/install-patches/24386>\
**Category:** SLES Updates\
**Created:** [September 7, 2013, 9:35pm UTC](https://forums.suse.com/t/install-patches/24386 "2013-09-07T21:35:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![susehelpforme](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@susehelpforme](https://forums.suse.com/u/susehelpforme)\
**Post date:** [September 7, 2013, 9:35pm UTC](https://forums.suse.com/t/install-patches/24386/1 "2013-09-07T21:35:29Z")

</div>

Hi all,

Newbie here with question.

I need to install the following patch:  
[http://ftp.samba.org/pub/samba/patches/security/samba-3.0-CVE-2012-0870.patch](http://ftp.samba.org/pub/samba/patches/security/samba-3.0-CVE-2012-0870.patch)

How can I install this patch? Using the patch command?  
Patch file references paths which don’t exist on my system - is that an issue? Also the file looks like an email - is this a typical format for a patch? This is the first time I have had to apply a patch.

I Googled, but quickly became overwhelmed with search results and varied opinions from other forums.

Need a quick and dirty answer on how I can install this patch (I promise I will read the patch man page again once I can successfully complete patching).

Thanks in advance.

M

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [September 7, 2013, 10:15pm UTC](https://forums.suse.com/t/install-patches/24386/2 "2013-09-07T22:15:43Z")

</div>

[http://users.suse.com/~meissner/cve/CVE-2012-0870.html](http://users.suse.com/~meissner/cve/CVE-2012-0870.html)

What you’re trying to do (incorrectly) is apply a patch to source. SUSE  
ships compiled applications so you do not need to compile from source all  
of the time, and that means you (unless you have added them) do not have  
source files, so your patch file is not that helpful. Thankfully, SUSE  
not only ships the applications but also ships the patched application  
files. The link above is specifically SUSE’s analysis of the issue and  
shows the patched versions of the RPMs. All you need to do is be sure  
you’re on those versions or later (be sure you match up the rows with your  
install… don’t compare SLES 10 with a SLES 11 install or vice versa) and  
then you’re done.

If you do not have these installed yet, but sure you are subscribed to a  
patch channel and then follow the normal patching procedure. Considering  
your post I am assuming you do not know the normal patching procedure, and  
if it is not in the documentation (it should be) the command that I  
believe is correct follows:

## Code:

## sudo zypper ref #refresh from the repositories sudo zypper patch #apply available patches

If you do not see patches and you think you should have them be sure you  
are subscribed to update channels, which would imply you are a registered  
customer using SLES. Yast can be used to register:

## Code:

## sudo /sbin/yast

Good luck.
