<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=RPM%2FYum</id>
	<title>RPM/Yum - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wikiold.home.tartarefr.eu/index.php?action=history&amp;feed=atom&amp;title=RPM%2FYum"/>
	<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=RPM/Yum&amp;action=history"/>
	<updated>2026-07-07T04:34:15Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wikiold.home.tartarefr.eu/index.php?title=RPM/Yum&amp;diff=571&amp;oldid=prev</id>
		<title>Didier : Page créée avec « ===How can I get yum to keep package &quot;foo&quot; at a certain version in a fashion similar to pinning provided by apt?===  There are several ways you can do this.  *One is to exclu... »</title>
		<link rel="alternate" type="text/html" href="https://wikiold.home.tartarefr.eu/index.php?title=RPM/Yum&amp;diff=571&amp;oldid=prev"/>
		<updated>2012-08-28T10:19:54Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « ===How can I get yum to keep package &amp;quot;foo&amp;quot; at a certain version in a fashion similar to pinning provided by apt?===  There are several ways you can do this.  *One is to exclu... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===How can I get yum to keep package &amp;quot;foo&amp;quot; at a certain version in a fashion similar to pinning provided by apt?===&lt;br /&gt;
&lt;br /&gt;
There are several ways you can do this.&lt;br /&gt;
&lt;br /&gt;
*One is to exclude it from your updates list. See man yum.conf for more details. &lt;br /&gt;
*Another way to pin package &amp;quot;foo&amp;quot; to a certain version is to use the versionlock plugin. &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;If you are using the latest Fedora ( version &amp;gt;= 12)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
then the plugin can be installed using:&lt;br /&gt;
&lt;br /&gt;
 yum install yum-plugin-versionlock&lt;br /&gt;
&lt;br /&gt;
To add files that you want version locked, use the following yum command:&lt;br /&gt;
&lt;br /&gt;
 yum versionlock &amp;lt;package-name&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you can also use wildcards:&lt;br /&gt;
&lt;br /&gt;
 yum versionlock &amp;lt;package-name&amp;gt;-*&lt;br /&gt;
&lt;br /&gt;
This command line will add lines to:&lt;br /&gt;
&lt;br /&gt;
 /etc/yum/pluginconf.d/versionlock.list&lt;br /&gt;
&lt;br /&gt;
The config file uses the following format: EPOCH:NAME-VERSION-RELEASE.ARCH which can be obtained using:&lt;br /&gt;
&lt;br /&gt;
 rpm -q &amp;lt;nowiki&amp;gt;&amp;lt;package name&amp;gt; --queryformat &amp;quot;%{EPOCH}:%{NAME}-%{VERSION}-%{RELEASE}\n &amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If no EPOCH is specified in the package, then the number will be 0.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternatively if you are using Redhat 5/CentOS 5 or another OS that does not yet have the latest yum available&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
you can use:&lt;br /&gt;
&lt;br /&gt;
 yum install yum-versionlock&lt;br /&gt;
&lt;br /&gt;
This older version of the plug-in does not extend command line flags that you can pass to yum and the lock list must be edited manually.&lt;br /&gt;
&lt;br /&gt;
For a manual install the source can be obtained from the current git repository for yum which is http://yum.baseurl.org/gitweb The files you need will be found in the yum-utils/plugins/versionlock part of the git tree. Copy &amp;lt;path&amp;gt;versionlock.py&amp;lt;/path&amp;gt; to &amp;lt;path&amp;gt;/usr/lib/yum-plugins/versionlock.py&amp;lt;/path&amp;gt; Copy versionlock.conf to /etc/yum/pluginconf.d/versionlock.conf Create &amp;lt;path&amp;gt;/etc/yum/pluginconf.d/versionlock.list&amp;lt;/path&amp;gt; All files should be root.root with 644 permissions.&lt;/div&gt;</summary>
		<author><name>Didier</name></author>
	</entry>
</feed>