SOLVED:
While working on a new package I created a mypackage-1.0.0.rpm, and ran create repo as usual, I installed the package, (yum install mypackage) and eventually removed it (yum remove mypackage) Next day I made an update (mypackage-1.0.1) ran createrepo and for some reason I cannot get yum to install the new package, if I go to another machine it installs the 1.0.1 package with no issue, here's what's really weird:
yum info (ran as a normal user) shows the latest version
yum info (ran as root) sees the old version
yum install sees the old version
I can't even specify the new package
I even went to the length of completely removing the rpm from my repo and re-running createrepo and it still shows the old package.
yum clean all also does not remove the phantom package version.
Any ideas on how this happened and/or how I can fix it? I'm curious if installing the rpm without yum will work, but I'd like to know the cause of the actual cause of the issue. Any tips on debugging would be appreciated.
Quote:
I wasn't running the yum clean commands as root and never noticed it. I'm glad Monday is almost over! |
yum info (ran as a normal user) shows the latest version
Code:
# yum info mypackage
Available Packages
Name : mypackage
Arch : noarch
Version : 1.0.1
Release : 1.el6
Size : 10 k
Repo : myrepo
Code:
#sudo yum info mypackage
Available Packages
Name : mypackage
Arch : noarch
Version : 1.0.0
Release : 1.el6
Size : 9.4 k
Repo : myrepo
Code:
# sudo yum install mypackage
Resolving Dependencies
--> Running transaction check
---> Package mypackage.noarch 0:1.0.0-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mypackage noarch 1.0.0-1.el6 myrepo 9.4 k
Transaction Summary
================================================================================
Install 1 Package(s)
Total download size: 9.4 k
Installed size: 11 k
Is this ok [y/N]:
Code:
# sudo yum install mypackage-1.0.1
No package mypackage-1.0.1 available.
Error: Nothing to do
yum clean all also does not remove the phantom package version.
Any ideas on how this happened and/or how I can fix it? I'm curious if installing the rpm without yum will work, but I'd like to know the cause of the actual cause of the issue. Any tips on debugging would be appreciated.