<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=OSErrata</id>
	<title>OSErrata - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=OSErrata"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=OSErrata&amp;action=history"/>
	<updated>2026-04-20T09:47:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=OSErrata&amp;diff=202&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === What is this page about ? === On this page, we will consider all RPM updates, except for kernel updates which are fully explained [http://mon.iihe.ac.be/trac/t2b/wiki/Ke...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=OSErrata&amp;diff=202&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === What is this page about ? === On this page, we will consider all RPM updates, except for kernel updates which are fully explained [http://mon.iihe.ac.be/trac/t2b/wiki/Ke...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== What is this page about ? ===&lt;br /&gt;
On this page, we will consider all RPM updates, except for kernel updates which are fully explained [http://mon.iihe.ac.be/trac/t2b/wiki/KernelUpdate here].&lt;br /&gt;
&lt;br /&gt;
Most of the time, these updates are to be done after a critical vulnerability has been discovered and the patched RPMs have been released.&lt;br /&gt;
&lt;br /&gt;
=== Where to find the updates ? ===&lt;br /&gt;
For Scientific Linux, updates can be downloaded here :&lt;br /&gt;
http://linux.web.cern.ch/linux/updates/&lt;br /&gt;
&lt;br /&gt;
Be careful when determining the list of RPM updates to download : there might be dependencies ! It is always a good thing to simulate a &amp;quot;yum update&amp;quot; of the RPMs you would like to update, that way you will see if additional RPMs are needed. As an example, after the critical vulnerability CVE-2010-4170 was discovered, it was asked to site-admins to update systemtap-runtime. Simulating a &amp;quot;yum update systemtap-runtime&amp;quot; on one of our machine, we got :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
&lt;br /&gt;
======================================================================================================================================================&lt;br /&gt;
 Package                                Arch                        Version                                    Repository                        Size&lt;br /&gt;
======================================================================================================================================================&lt;br /&gt;
Updating:&lt;br /&gt;
 systemtap                              x86_64                      1.1-3.el5_5.3                              sl-security                      2.2 M&lt;br /&gt;
 systemtap-runtime                      x86_64                      1.1-3.el5_5.3                              sl-security                       85 k&lt;br /&gt;
Installing for dependencies:&lt;br /&gt;
 kernel-devel                           x86_64                      2.6.18-194.26.1.el5                        sl-security                      5.4 M&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This simulation reveals that updating RPMs systemtap and systemtap-runtime requires that we also update kernel-devel !&lt;br /&gt;
&lt;br /&gt;
=== Adding the updates to BEgrid repository ===&lt;br /&gt;
This task is described [http://mon.iihe.ac.be/trac/t2b/wiki/GridAdminSurvivalGuide#AddsomeRPMstotheBEgridrepositorywithswrep here].&lt;br /&gt;
&lt;br /&gt;
=== Updating the errata template ===&lt;br /&gt;
For each OS, there should be an errata template that tells the updates to apply :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cfg/sites/begrid/os/&amp;lt;OperatingSystem&amp;gt;/rpms/errata.tpl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
These updates should normally be applied using the pkg_ronly function (update RPM will be installed only if a previous version is found). Note : with pkg_repl, the RPM will be installed no matter an older version was installed earlier.&lt;br /&gt;
As an example, here is the content of the errata template for OS SL5.3 x86_64 :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#cat ~/workspace/central-begrid-v6/cfg/sites/begrid/os/sl530-x86_64/rpms/errata.tpl&lt;br /&gt;
&lt;br /&gt;
template rpms/errata;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;/software/packages&amp;#039;=pkg_ronly(&amp;#039;glibc&amp;#039;,&amp;#039;2.5-49.el5_5.7&amp;#039;,&amp;#039;i686&amp;#039;);&lt;br /&gt;
&amp;#039;/software/packages&amp;#039;=pkg_ronly(&amp;#039;glibc&amp;#039;,&amp;#039;2.5-49.el5_5.7&amp;#039;,&amp;#039;x86_64&amp;#039;);&lt;br /&gt;
&amp;#039;/software/packages&amp;#039;=pkg_ronly(&amp;#039;glibc-common&amp;#039;,&amp;#039;2.5-49.el5_5.7&amp;#039;,&amp;#039;x86_64&amp;#039;);&lt;br /&gt;
&amp;#039;/software/packages&amp;#039;=pkg_ronly(&amp;#039;glibc-devel&amp;#039;,&amp;#039;2.5-49.el5_5.7&amp;#039;,&amp;#039;i386&amp;#039;);&lt;br /&gt;
&amp;#039;/software/packages&amp;#039;=pkg_ronly(&amp;#039;glibc-devel&amp;#039;,&amp;#039;2.5-49.el5_5.7&amp;#039;,&amp;#039;x86_64&amp;#039;);&lt;br /&gt;
&amp;#039;/software/packages&amp;#039;=pkg_ronly(&amp;#039;glibc-headers&amp;#039;,&amp;#039;2.5-49.el5_5.7&amp;#039;,&amp;#039;x86_64&amp;#039;);&lt;br /&gt;
&amp;#039;/software/packages&amp;#039;=pkg_ronly(&amp;#039;glibc-utils&amp;#039;,&amp;#039;2.5-49.el5_5.7&amp;#039;,&amp;#039;x86_64&amp;#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Activate update deployment in your site ===&lt;br /&gt;
Updates defined in errata.tpl are only applied if the variable PKG_DEPLOY_OS_ERRATA is true. It is set by default to false at the BEgrid level. So, to activate the updates deployment, we had to add :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
variable PKG_DEPLOY_OS_ERRATA = true;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
in the template :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cfg/sites/iihe-production/site/global_variables.tpl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>