Check that this is indeed happening on a host with no previous version of the package installed.
[root@el7.host noarch]# rpm -qa | grep umd
After downloading the package locally we install it:
[root@el7.host noarch]# yum localinstall umd-release-4.1.2-1.el7.centos.noarch.rpm
Loaded plugins: fastestmirror
Examining umd-release-4.1.2-1.el7.centos.noarch.rpm: umd-release-4.1.2-1.el7.centos.noarch
Marking umd-release-4.1.2-1.el7.centos.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package umd-release.noarch 0:4.1.2-1.el7.centos will be installed
--> Processing Dependency: yum-priorities for package: umd-release-4.1.2-1.el7.centos.noarch
base | 3.6 kB 00:00
epel/x86_64/metalink | 25 kB 00:00
epel | 4.3 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/2): epel/x86_64/updateinfo | 670 kB 00:01
(2/2): epel/x86_64/primary_db | 4.3 MB 00:02
Loading mirror speeds from cached hostfile
* base: ftp.ntua.gr
* epel: ftp.ntua.gr
* extras: ftp.ntua.gr
* updates: ftp.ntua.gr
--> Running transaction check
---> Package yum-plugin-priorities.noarch 0:1.1.31-34.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
umd-release noarch 4.1.2-1.el7.centos
/umd-release-4.1.2-1.el7.centos.noarch 13 k
Installing for dependencies:
yum-plugin-priorities
noarch 1.1.31-34.el7 base 25 k
Transaction Summary
================================================================================
Install 1 Package (+1 Dependent package)
Total size: 37 k
Total download size: 25 k
Installed size: 41 k
Is this ok [y/d/N]: y
Downloading packages:
yum-plugin-priorities-1.1.31-34.el7.noarch.rpm | 25 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : yum-plugin-priorities-1.1.31-34.el7.noarch 1/2
Installing : umd-release-4.1.2-1.el7.centos.noarch 2/2
Verifying : yum-plugin-priorities-1.1.31-34.el7.noarch 1/2
Verifying : umd-release-4.1.2-1.el7.centos.noarch 2/2
Installed:
umd-release.noarch 0:4.1.2-1.el7.centos
Dependency Installed:
yum-plugin-priorities.noarch 0:1.1.31-34.el7
Complete!
After the installation we check the contents of the /etc/yum.repos.d/
folder:
[root@el7.host noarch]# cd /etc/yum.repos.d/
[root@el7.host yum.repos.d]# ls
CentOS-Base.repo CentOS-Sources.repo UMD-4-base.repo
CentOS-CR.repo CentOS-Vault.repo UMD-4-testing.repo
CentOS-Debuginfo.repo EGI-trustanchors.repo UMD-4-untested.repo
CentOS-fasttrack.repo epel.repo UMD-4-updates.repo
CentOS-Media.repo epel-testing.repo
[root@el7.host yum.repos.d]# cat UMD-4-base.repo
[UMD-4-base]
name=UMD 4 base (CentOS 7)
baseurl=http://repository.egi.eu/sw/production/umd/4/centos7/$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:
[root@el7.host yum.repos.d]# 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:
[root@el7.host yum.repos.d]# yum remove umd-release
Loaded plugins: fastestmirror, priorities
Resolving Dependencies
--> Running transaction check
---> Package umd-release.noarch 0:4.1.2-1.el7.centos will be erased
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package
Arch Version Repository Size
================================================================================
Removing:
umd-release
noarch 4.1.2-1.el7.centos @/umd-release-4.1.2-1.el7.centos.noarch 13 k
Transaction Summary
================================================================================
Remove 1 Package
Installed size: 13 k
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : umd-release-4.1.2-1.el7.centos.noarch 1/1
Verifying : umd-release-4.1.2-1.el7.centos.noarch 1/1
Removed:
umd-release.noarch 0:4.1.2-1.el7.centos
Complete!
We check to see that the extra lines within the priorities.conf
file have been removed:
[root@el7.host yum.repos.d]# cat /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
Again, everything played out as expected.
[root@el7.host ~]# cd RPMS/noarch
[root@el7.host noarch]# wget http://repository.egi.eu/sw/production/umd/4/centos7/x86_64/updates/umd-release-4.1.1-1.el7.noarch.rpm
--2016-10-27 13:32:35-- http://repository.egi.eu/sw/production/umd/4/centos7/x86_64/updates/umd-release-4.1.1-1.el7.noarch.rpm
Resolving repository.egi.eu (repository.egi.eu)... 195.251.53.182, 2001:648:2030:6000::182:182
Connecting to repository.egi.eu (repository.egi.eu)|195.251.53.182|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9992 (9.8K) [application/x-rpm]
Saving to: ‘umd-release-4.1.1-1.el7.noarch.rpm’
100%[======================================>] 9,992 --.-K/s in 0s
2016-10-27 13:32:35 (109 MB/s) - ‘umd-release-4.1.1-1.el7.noarch.rpm’ saved [9992/9992]
[root@el7.host noarch]# yum localinstall umd-release-4.1.1-1.el7.noarch.rpm
Loaded plugins: fastestmirror, priorities
Examining umd-release-4.1.1-1.el7.noarch.rpm: umd-release-4.1.1-1.el7.noarch
Marking umd-release-4.1.1-1.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package umd-release.noarch 0:4.1.1-1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
umd-release noarch 4.1.1-1.el7 /umd-release-4.1.1-1.el7.noarch 13 k
Transaction Summary
================================================================================
Install 1 Package
Total size: 13 k
Installed size: 13 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : umd-release-4.1.1-1.el7.noarch 1/1
Verifying : umd-release-4.1.1-1.el7.noarch 1/1
Installed:
umd-release.noarch 0:4.1.1-1.el7
Complete!
Check the contents of priorities.conf
file:
[root@el7.host noarch]# 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:
[root@el7.host noarch]# yum update umd-release-4.1.2-1.el7.centos.noarch.rpm
Loaded plugins: fastestmirror, priorities
Examining umd-release-4.1.2-1.el7.centos.noarch.rpm: umd-release-4.1.2-1.el7.centos.noarch
Marking umd-release-4.1.2-1.el7.centos.noarch.rpm as an update to umd-release-4.1.1-1.el7.noarch
Resolving Dependencies
--> Running transaction check
---> Package umd-release.noarch 0:4.1.1-1.el7 will be updated
---> Package umd-release.noarch 0:4.1.2-1.el7.centos will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
umd-release
noarch 4.1.2-1.el7.centos /umd-release-4.1.2-1.el7.centos.noarch 13 k
Transaction Summary
================================================================================
Upgrade 1 Package
Total size: 13 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Updating : umd-release-4.1.2-1.el7.centos.noarch 1/2
Cleanup : umd-release-4.1.1-1.el7.noarch 2/2
Verifying : umd-release-4.1.2-1.el7.centos.noarch 1/2
Verifying : umd-release-4.1.1-1.el7.noarch 2/2
Updated:
umd-release.noarch 0:4.1.2-1.el7.centos
Complete!
Check the contents of the prioirities.conf
file:
[root@el7.host noarch]# 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
!