SCIENTIFIC-LINUX-USERS Archives

July 2009

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Dr Andrew C Aitchison <[log in to unmask]>
Reply To:
Dr Andrew C Aitchison <[log in to unmask]>
Date:
Fri, 31 Jul 2009 08:21:56 +0100
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (28 lines)
On Thu, 30 Jul 2009, Vladimir Fekete wrote:

> Hi all,
>
> I'd like to ask you for a help - explanation of yum output. When I get line
> like:
>
> Error: Missing Dependency: jdk = 2000:1.6.0_03-fcs is needed by package java-1.6.0-sun-compat
>
> what is the meaning of 2000:1.6.0_03-fcs part ?
>
> I was desperate, because when I typed yum remove jdk I was able to see the
> correct version. After a day I noticed that the only difference is in this
> number 2000 before ':'.  Could you explain to me what it means ? Thanks!

The bit before the colon is the epoch number. Try
rpmquery --qf '%{name}-%{epoch}:%{version}-%{release}.%{arch}.rpm\n' java-1.6.0-sun-compat
and (once you have jdk installed)
rpmquery --qf '%{name}-%{epoch}:%{version}-%{release}.%{arch}.rpm\n' jdk

Most packages have no epoch number, so you get
# rpmquery --qf '%{name}-%{epoch}:%{version}-%{release}.%{arch}.rpm\n' kernel
kernel-(none):2.6.18-128.1.16.el5.x86_64.rpm

-- 
Dr. Andrew C. Aitchison		Computer Officer, DPMMS, Cambridge
[log in to unmask]	http://www.dpmms.cam.ac.uk/~werdna

ATOM RSS1 RSS2