While testing a script that installs packages, I ran into a situation where I seem to have
to (or can) install the epel package twice in a row (and get different results).
This may actually be a package handler (rpm, yum) issue, but it only happens with
epel-release, so maybe someone in the epel community can explain this to me.
Normally when one tries to install a package that's already installed, yum will tell
you "package already installed, nothing to do".
However, when I do that with epel-release, after a first install, it will accept a second
install as well (details below), installing something different, and only on the 3rd
install it will say "package already installed, nothing to do".
To demonstrate this I will first do (so as to start from scratch):
sudo yum -y remove epel-release
(this will remove the package, and it tells you it has done so. I actually did this twice,
but the 2nd time it told me there was nothing to remove).
Then run
sudo yum -y install epel-release
It will tell you: "Installed: epel-release.noarch 0:7-9"
I would have expected it to install whatever is the latest release, however if I then
immediately run the SAME command:
sudo yum -y install epel-release
It tells me:
"
Updating : epel-release-7-10.noarch
Cleanup : epel-release-7-9.noarch
Verifying : epel-release-7-10.noarch
Verifying : epel-release-7-9.noarch
Updated:
epel-release.noarch 0:7-10
"
Why didn't it install 7-10 the very first time I ran yum install?
Why do I, seeminly, have to run yum install twice to get the latest version?
Can someone shed a light on this?
Log file of this all attached,
~ Paul Claessen
Show replies by date