Re: Upgrading from 5.7 to 5.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 23.6.2012 14:18, Sorin Srbu wrote:
>> -----Original Message-----
>> From: centos-bounces@xxxxxxxxxx [mailto:centos-bounces@xxxxxxxxxx] On
>> Behalf Of Keith Roberts
>> Sent: den 23 juni 2012 14:08
>> To: CentOS mailing list
>> Subject:  Upgrading from 5.7 to 5.8
>>
>> My box did upgrade itself automatically from the
>> initial 5.5 DVD installation to 5.7
>>
>> How can I tell if my box has been automatically upgraded
>> from 5.7 to 5.8 please?
> 
> # cat /etc/redhat-release

$ rpm -qf /etc/redhat-release
centos-release-5-8.el5.centos

$ rpm -q centos-release
centos-release-5-8.el5.centos
$ rpm -q --qf "%{version}\n" centos-release
5
$ rpm -q --qf "%{release}\n" centos-release
8.el5.centos

I don't know if it is more sane to ask the content of the file or to ask
rpm, but I tend to the rpm method. I vaguely remember that modification
of /etc/redhat-release was used to trick some third-party software that
depends on the content of the file.

yum also does an rpm lookup AFAIU , see distroverpkg in yum.conf(5)
-- 
Kind Regards, Markus Falb

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux