[CentOS] Problem with yum/kdevelop?

Thu Jun 30 19:22:40 UTC 2005
Paul Heinlein <heinlein at madboa.com>

On 6/30/05 11:53 AM, Joshua Weage wrote:
> I've produced a custom rpm for kdevelop 3.0.1.  However, yum
> reinstalls the original CentOS rpm when I do 'yum update'.
> 
> Yum shows the following for kdevelop:
> 
> 
>> yum list kdevelop
> 
> 
> --------------------------------------------------------------------------------
>  kdevelop                            i386   8:2.1.5-12.1 base
> 
> Looking in Installed Packages: Name
> Arch   Version Repo 
> --------------------------------------------------------------------------------
>  kdevelop                            i386   3.0.1-1
> db
> 
> If I then to a "yum update", it will prompt me to install 2.1.5 over 
> the top of 3.0.1, as it is reporting the version as "8:2.1.5-12.1".
> 
> The header for kdevelop is named: kdevelop-8-2.1.5-12.1.i386.hdr
> 
> Can anyone tell me why the header for kdevelop has a leading 8 rather
>  than 0?

Welcome to the wacky world of Epochs. If you do a normal package query, 
you'll get information about version and release numbers:

$ rpm -q kdevelop
kdevelop-2.1.5-6

What you don't ordinary see is the epoch number:

$ rpm -q --qf '%{name} %{epoch}:%{version}-%{release}\n' kdevelop
kdevelop 8:2.1.5-6

What you need to do is define an "Epoch:" header in your spec file 
that's as large as that of the package you're replacing (in this case, "8").

-- 
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com