Check that this is indeed happening on a host with no previous version of the package installed.
[root@el6.host noarch]# rpm -qa | grep umd
After downloading the package locally we install it:
[root@el6.host noarch]# yum localinstall umd-release-4.1.2-1.el6.noarch.rpm
Loaded plugins: fastestmirror, security
Setting up Local Package Process
Examining umd-release-4.1.2-1.el6.noarch.rpm: umd-release-4.1.2-1.el6.noarch
Marking umd-release-4.1.2-1.el6.noarch.rpm to be installed
Determining fastest mirrors
epel/metalink | 21 kB 00:00
* base: ftp.ntua.gr
* epel: ftp.cc.uoc.gr
* extras: ftp.ntua.gr
* updates: ftp.ntua.gr
base | 3.7 kB 00:00
epel | 4.3 kB 00:00
epel/primary_db | 5.9 MB 00:02
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 3.1 MB 00:00
Resolving Dependencies
--> Running transaction check
---> Package umd-release.noarch 0:4.1.2-1.el6 will be installed
--> Processing Dependency: yum-priorities for package: umd-release-4.1.2-1.el6.noarch
--> Running transaction check
---> Package yum-plugin-priorities.noarch 0:1.1.30-37.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
umd-release noarch 4.1.2-1.el6 /umd-release-4.1.2-1.el6.noarch 12 k
Installing for dependencies:
yum-plugin-priorities
noarch 1.1.30-37.el6 base 27 k
Transaction Summary
================================================================================
Install 2 Package(s)
Total size: 39 k
Total download size: 27 k
Installed size: 40 k
Is this ok [y/N]: y
Downloading Packages:
yum-plugin-priorities-1.1.30-37.el6.noarch.rpm | 27 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : yum-plugin-priorities-1.1.30-37.el6.noarch 1/2
Installing : umd-release-4.1.2-1.el6.noarch 2/2
Verifying : yum-plugin-priorities-1.1.30-37.el6.noarch 1/2
Verifying : umd-release-4.1.2-1.el6.noarch 2/2
Installed:
umd-release.noarch 0:4.1.2-1.el6
Dependency Installed:
yum-plugin-priorities.noarch 0:1.1.30-37.el6
Complete!
After the installation we check the contents of the /etc/yum.repos.d/
folder:
[root@el6.host noarch]# ls -la /etc/yum.repos.d/
total 84
drwxr-xr-x. 2 root root 4096 Oct 27 14:24 .
drwxr-xr-x. 109 root root 12288 Oct 27 14:24 ..
-rw-r--r-- 1 root root 127 Oct 7 2014 auth-scc.repo
-rw-r--r-- 1 root root 1991 May 18 22:47 CentOS-Base.repo
-rw-r--r-- 1 root root 647 May 18 22:47 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 289 May 18 22:47 CentOS-fasttrack.repo
-rw-r--r-- 1 root root 630 May 18 22:47 CentOS-Media.repo
-rw-r--r-- 1 root root 6259 May 18 22:47 CentOS-Vault.repo
-rw-r--r-- 1 root root 1004 Sep 17 2014 dell-omsa-repository.repo
-rw-r--r-- 1 root root 292 Oct 12 13:50 EGI-trustanchors.repo
-rw-r--r-- 1 root root 957 Nov 5 2012 epel.repo
-rw-r--r-- 1 root root 1056 Nov 5 2012 epel-testing.repo
-rw-r--r-- 1 root root 818 Feb 20 2014 glusterfs-epel.repo
-rw-r--r-- 1 root root 219 Jan 30 2015 logstash-forwarder.repo
-rw-r--r-- 1 root root 279 Oct 21 12:34 UMD-4-base.repo
-rw-r--r-- 1 root root 277 Oct 21 12:34 UMD-4-testing.repo
-rw-r--r-- 1 root root 280 Oct 21 12:34 UMD-4-untested.repo
-rw-r--r-- 1 root root 288 Oct 21 12:34 UMD-4-updates.repo
# cat /etc/yum.repos.d/UMD-4-base.repo
[UMD-4-base]
name=UMD 4 base (CentOS 6)
baseurl=http://repository.egi.eu/sw/production/umd/4/sl6/$basearch/base
protect=1
enabled=1
# To use priorities you must have yum-priorities installed
priority=1
gpgcheck=1
gpgkey=http://repository.egi.eu/sw/production/umd/UMD-RPM-PGP-KEY
We now check the contents of the priorities.conf
file:
# cat /etc/yum/pluginconf.d/priorities.conf
[main]
# added by the umd-release package
check_obsoletes = 1
enabled = 1
Everything has worked as expected.
We uninstall the package:
# yum remove umd-release
Loaded plugins: fastestmirror, priorities, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package umd-release.noarch 0:4.1.2-1.el6 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Removing:
umd-release noarch 4.1.2-1.el6 @/umd-release-4.1.2-1.el6.noarch 12 k
Transaction Summary
================================================================================
Remove 1 Package(s)
Installed size: 12 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : umd-release-4.1.2-1.el6.noarch 1/1
Verifying : umd-release-4.1.2-1.el6.noarch 1/1
Removed:
umd-release.noarch 0:4.1.2-1.el6
Complete!
We check to see that the extra lines within the priorities.conf
file have been removed:
# cat /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
Again, everything played out as expected.
# yum localinstall umd-release-4.1.1-1.el6.noarch.rpm
Loaded plugins: fastestmirror, priorities, security
Setting up Local Package Process
Examining umd-release-4.1.1-1.el6.noarch.rpm: umd-release-4.1.1-1.el6.noarch
Marking umd-release-4.1.1-1.el6.noarch.rpm to be installed
Loading mirror speeds from cached hostfile
* base: ftp.ntua.gr
* epel: ftp.cc.uoc.gr
* extras: ftp.ntua.gr
* updates: ftp.ntua.gr
Resolving Dependencies
--> Running transaction check
---> Package umd-release.noarch 0:4.1.1-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
umd-release noarch 4.1.1-1.el6 /umd-release-4.1.1-1.el6.noarch 12 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total size: 12 k
Installed size: 12 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : umd-release-4.1.1-1.el6.noarch 1/1
Verifying : umd-release-4.1.1-1.el6.noarch 1/1
Installed:
umd-release.noarch 0:4.1.1-1.el6
Complete!
Check the contents of priorities.conf
file:
# cat /etc/yum/pluginconf.d/priorities.conf
[main]
# added by the umd-release package
check_obsoletes = 1
enabled = 1
Everything seems ok. We now upgrade to the latest version available:
# yum update umd-release-4.1.2-1.el6.noarch.rpm
Loaded plugins: fastestmirror, priorities, security
Setting up Update Process
Examining umd-release-4.1.2-1.el6.noarch.rpm: umd-release-4.1.2-1.el6.noarch
Marking umd-release-4.1.2-1.el6.noarch.rpm as an update to umd-release-4.1.1-1.el6.noarch
Loading mirror speeds from cached hostfile
* base: ftp.ntua.gr
* epel: ftp.cc.uoc.gr
* extras: ftp.ntua.gr
* updates: ftp.ntua.gr
EGI-trustanchors | 2.5 kB 00:00
EGI-trustanchors/primary_db | 58 kB 00:00
UMD-4-base | 1.9 kB 00:00
UMD-4-base/primary_db | 1.1 kB 00:00
UMD-4-updates | 1.9 kB 00:00
UMD-4-updates/primary_db | 339 kB 00:00
470 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package umd-release.noarch 0:4.1.1-1.el6 will be updated
---> Package umd-release.noarch 0:4.1.2-1.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
umd-release noarch 4.1.2-1.el6 /umd-release-4.1.2-1.el6.noarch 12 k
Transaction Summary
================================================================================
Upgrade 1 Package(s)
Total size: 12 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : umd-release-4.1.2-1.el6.noarch 1/2
Cleanup : umd-release-4.1.1-1.el6.noarch 2/2
Verifying : umd-release-4.1.2-1.el6.noarch 1/2
Verifying : umd-release-4.1.1-1.el6.noarch 2/2
Updated:
umd-release.noarch 0:4.1.2-1.el6
Complete!
Check the contents of the prioirities.conf
file:
# cat /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
We note that there is a problem is the priorities.conf
file, in that the check_obsoletes
flag has been removed. This should not have happened. To work around it site administrators will need to be cautious not to upgrade the file but rather to uninstall the old version and then install the latest one available from repository.egi.eu
!