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? I see the CentOS-CR.repo is still in my /etc/yum.repos.d/ directory. Is that repo responsible for doing the automatic upgrades for Centos 5.x? Kind Regards, Keith Roberts ----------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------
> -----Original Message----- > From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On > Behalf Of Keith Roberts > Sent: den 23 juni 2012 14:08 > To: CentOS mailing list > Subject: [CentOS] 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 HTH. -- /Sorin
On 23.6.2012 14:18, Sorin Srbu wrote:>> -----Original Message----- >> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On >> Behalf Of Keith Roberts >> Sent: den 23 juni 2012 14:08 >> To: CentOS mailing list >> Subject: [CentOS] 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 307 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20120623/eafb14e0/attachment-0004.sig>
On Sat, 23 Jun 2012, Markus Falb wrote:> $ 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.Yes it's the same Markus. [root at karsites ~]# rpm -qf /etc/redhat-release centos-release-5-8.el5.centos Thanks, Keith ----------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------