Product SiteDocumentation Site

6.25.2. Usage examples

This computer has an available update for xterm but it will be blocked.
Before the update blocking.
$ yum list updates xterm
xterm.i386                               227-1.fc7              updates
Current installed version:
$ rpm -q xterm
xterm-225-2.fc7
Edit your configuration file to add the file with the package list, add the previous full name, and try to update:
$ yum update xterm
Loading "installonlyn" plugin
Loading "versionlock" plugin
Loading "fastestmirror" plugin
Setting up Update Process
Loading mirror speeds from cached hostfile
Reading version lock configuration
Could not find update match for xterm
No Packages marked for Update/Obsoletion
It effectively blocks the update for that package, and it does not even list the update for that package.

Only the package

It only blocks the listed package but not its dependants, ie if you wish to update another package which depends on the blocked, and it is necessary to remove the current package to update it, the update of the dependant package will fail. As an example, if php-5.2.5-7.fc9.i386 is blocked and yum update is tried we get the following result.
php-5.2.5-7.fc9.i386 from installed has depsolving problems
  --> Missing Dependency: php-cli = 5.2.5-7.fc9 is needed by package php-5.2.5-7.fc9.i386 (installed)
php-5.2.5-7.fc9.i386 from installed has depsolving problems
  --> Missing Dependency: php-common = 5.2.5-7.fc9 is needed by package php-5.2.5-7.fc9.i386 (installed)
Error: Missing Dependency: php-common = 5.2.5-7.fc9 is needed by package php-5.2.5-7.fc9.i386 (installed)
Error: Missing Dependency: php-cli = 5.2.5-7.fc9 is needed by package php-5.2.5-7.fc9.i386 (installed) 
The only known alternative to avoid these errors is to block the dependant packages versions too.