how to update scientific linux 6.1 to 6.2?
tried normal redhat way update, without any success: yum upgrade Setting up Upgrade Process No Packages marked for Update why? cat /etc/yum.repos.d/sl.repo [sl] name=Scientific Linux $releasever - $basearch baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/ http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/os/ http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/os/ ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/ #mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6.txt enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson [sl-security] name=Scientific Linux $releasever - $basearch - security updates baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/ http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/ http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/ ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/ #mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-security-6.txt enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson [sl-source] name=Scientific Linux $releasever - Source baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/ http://ftp1.scientificlinux.org/linux/scientific/$releasever/SRPMS/ http://ftp2.scientificlinux.org/linux/scientific/$releasever/SRPMS/ ftp://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson -- Eero
Re: how to update scientific linux 6.1 to 6.2?
yum --releasever=6.2 update did the trick. 2012/4/4 Eero Volotinen eero.voloti...@iki.fi: tried normal redhat way update, without any success: yum upgrade Setting up Upgrade Process No Packages marked for Update sorry for noise to the list.. -- Eero
Re: how to update scientific linux 6.1 to 6.2?
On 04/04/2012 03:31 PM, Eero Volotinen wrote: yum --releasever=6.2 update did the trick. 2012/4/4 Eero Volotineneero.voloti...@iki.fi: tried normal redhat way update, without any success: yum upgrade Setting up Upgrade Process No Packages marked for Update sorry for noise to the list.. Hi Eero, I believe that using --releasever=N doesn't make a permanenent change. You will need to set your release version to 6.2, 6x or 6rolling if you want to be pulling from the 6.2 repos the next time you run yum -- otherwise you'll be puzzled why you're not getting updates. I'm unsure if there is a more elegant solution, but I think the only place to make that change permanent is by doing something like: sed --in-place=.bak -e s/6.1/6x/ /etc/redhat-release Or do the equivalent by hand. But that might be a crude hack -- Someone else here please pipe up if there is a better way. Or there is always: alias yum=yum --releasever=6x Cheers -z
Re: how to update scientific linux 6.1 to 6.2?
On 04/04/2012 06:53 AM, zxq9 wrote: On 04/04/2012 03:31 PM, Eero Volotinen wrote: yum --releasever=6.2 update did the trick. 2012/4/4 Eero Volotineneero.voloti...@iki.fi: tried normal redhat way update, without any success: yum upgrade Setting up Upgrade Process No Packages marked for Update sorry for noise to the list.. Hi Eero, I believe that using --releasever=N doesn't make a permanenent change. You will need to set your release version to 6.2, 6x or 6rolling if you want to be pulling from the 6.2 repos the next time you run yum -- otherwise you'll be puzzled why you're not getting updates. I'm unsure if there is a more elegant solution, but I think the only place to make that change permanent is by doing something like: sed --in-place=.bak -e s/6.1/6x/ /etc/redhat-release Or do the equivalent by hand. But that might be a crude hack -- Someone else here please pipe up if there is a better way. Or there is always: alias yum=yum --releasever=6x Cheers -z I use the instructions in the URL below and tweaked the process a bit for some local issues I have. I found that on some systems the rather long list of packages it wants to update can cause yum to get a bit confused. So I loop through the alphabet one letter at a time running yum -y --releasever=6.2 update a\*, then b\*, c\* etc. That keeps yum happy. After that the only packages left are a few with capital letters or numerals at the beginning of the package name. Also had an issue with autofs, so I grab a copy of the new autofs rpm and update it locally before beginning the process. https://www.scientificlinux.org/documentation/howto/upgrade.6x -- Stephen Berg Systems Administrator NRL Code: 7320 Office: 228-688-5738 stephen.berg@nrlssc.navy.mil
Re: how to update scientific linux 6.1 to 6.2?
On 04/04/2012 09:06 PM, Stephen Berg (Contractor) wrote: I use the instructions in the URL below and tweaked the process a bit for some local issues I have. I found that on some systems the rather long list of packages it wants to update can cause yum to get a bit confused. So I loop through the alphabet one letter at a time running yum -y --releasever=6.2 update a\*, then b\*, c\* etc. That keeps yum happy. After that the only packages left are a few with capital letters or numerals at the beginning of the package name. Also had an issue with autofs, so I grab a copy of the new autofs rpm and update it locally before beginning the process. https://www.scientificlinux.org/documentation/howto/upgrade.6x Stephen, That's a handy link to pass out to people. And its on the sl website -- who'd a thought to look there of all places! (O.o) I'm curious about your yum confusion problem. Are you using any repositories external to SL or EPEL? And, of course, I'd really be interested if you have a logged example of the problem occurring or maybe a way to reproduce it.
Re: how to update scientific linux 6.1 to 6.2?
On 04/04/2012 07:15 AM, zxq9 wrote: On 04/04/2012 09:06 PM, Stephen Berg (Contractor) wrote: I use the instructions in the URL below and tweaked the process a bit for some local issues I have. I found that on some systems the rather long list of packages it wants to update can cause yum to get a bit confused. So I loop through the alphabet one letter at a time running yum -y --releasever=6.2 update a\*, then b\*, c\* etc. That keeps yum happy. After that the only packages left are a few with capital letters or numerals at the beginning of the package name. Also had an issue with autofs, so I grab a copy of the new autofs rpm and update it locally before beginning the process. https://www.scientificlinux.org/documentation/howto/upgrade.6x Stephen, That's a handy link to pass out to people. And its on the sl website -- who'd a thought to look there of all places! (O.o) I'm curious about your yum confusion problem. Are you using any repositories external to SL or EPEL? And, of course, I'd really be interested if you have a logged example of the problem occurring or maybe a way to reproduce it. I have locally mirrored repos for SL and SL-security. Plus some of the addons, elrepo, epel, and rpmforge. I've got all three of the external repos filtering out quite a few packages that conflict so normal updates work pretty cleanly. I figure that my setup is most likely the cause of the issues with yum getting confused, but my workaround keeps it happy so I haven't looked into further, and I haven't complained since it's likely due to my own set up. -- Stephen Berg Systems Administrator NRL Code: 7320 Office: 228-688-5738 stephen.berg@nrlssc.navy.mil
Re: how to update scientific linux 6.1 to 6.2?
On 04/04/2012 09:24 PM, Stephen Berg (Contractor) wrote: On 04/04/2012 07:15 AM, zxq9 wrote: On 04/04/2012 09:06 PM, Stephen Berg (Contractor) wrote: I use the instructions in the URL below and tweaked the process a bit for some local issues I have. I found that on some systems the rather long list of packages it wants to update can cause yum to get a bit confused. So I loop through the alphabet one letter at a time running yum -y --releasever=6.2 update a\*, then b\*, c\* etc. That keeps yum happy. After that the only packages left are a few with capital letters or numerals at the beginning of the package name. Also had an issue with autofs, so I grab a copy of the new autofs rpm and update it locally before beginning the process. https://www.scientificlinux.org/documentation/howto/upgrade.6x Stephen, That's a handy link to pass out to people. And its on the sl website -- who'd a thought to look there of all places! (O.o) I'm curious about your yum confusion problem. Are you using any repositories external to SL or EPEL? And, of course, I'd really be interested if you have a logged example of the problem occurring or maybe a way to reproduce it. I have locally mirrored repos for SL and SL-security. Plus some of the addons, elrepo, epel, and rpmforge. I've got all three of the external repos filtering out quite a few packages that conflict so normal updates work pretty cleanly. I figure that my setup is most likely the cause of the issues with yum getting confused, but my workaround keeps it happy so I haven't looked into further, and I haven't complained since it's likely due to my own set up. Ah, that makes more sense. I've had weirdness during upgrades when pulling things from elrepo or atrpms myself, but I've never seen your approach to fixing it (I usually just tell it to pull everything from external repos, do the upgrade, and then reinstall the external packages). In fact, that going by letter one by one does anything to relieve the situation is a surprise! Anyway, thanks for the explanation. I was afraid there was some deeper yum issue I've not seen yet, which would be odd since I'm pretty familiar with Fedora (where breaking yum was something of a hobby for a while...).
Re: how to update scientific linux 6.1 to 6.2?
Hi Stephen, thanks for the link. That did it for me. About looping through the alphabet, I was ready to write a bash script. Luckily, my yum.repo didn't give me issue. -Tam On Wed, Apr 4, 2012 at 8:06 AM, Stephen Berg (Contractor) stephen.berg@nrlssc.navy.mil wrote: On 04/04/2012 06:53 AM, zxq9 wrote: On 04/04/2012 03:31 PM, Eero Volotinen wrote: yum --releasever=6.2 update did the trick. 2012/4/4 Eero Volotineneero.volotinen@iki.**fi eero.voloti...@iki.fi : tried normal redhat way update, without any success: yum upgrade Setting up Upgrade Process No Packages marked for Update sorry for noise to the list.. Hi Eero, I believe that using --releasever=N doesn't make a permanenent change. You will need to set your release version to 6.2, 6x or 6rolling if you want to be pulling from the 6.2 repos the next time you run yum -- otherwise you'll be puzzled why you're not getting updates. I'm unsure if there is a more elegant solution, but I think the only place to make that change permanent is by doing something like: sed --in-place=.bak -e s/6.1/6x/ /etc/redhat-release Or do the equivalent by hand. But that might be a crude hack -- Someone else here please pipe up if there is a better way. Or there is always: alias yum=yum --releasever=6x Cheers -z I use the instructions in the URL below and tweaked the process a bit for some local issues I have. I found that on some systems the rather long list of packages it wants to update can cause yum to get a bit confused. So I loop through the alphabet one letter at a time running yum -y --releasever=6.2 update a\*, then b\*, c\* etc. That keeps yum happy. After that the only packages left are a few with capital letters or numerals at the beginning of the package name. Also had an issue with autofs, so I grab a copy of the new autofs rpm and update it locally before beginning the process. https://www.scientificlinux.**org/documentation/howto/**upgrade.6xhttps://www.scientificlinux.org/documentation/howto/upgrade.6x -- Stephen Berg Systems Administrator NRL Code: 7320 Office: 228-688-5738 stephen.berg@nrlssc.navy.**mil stephen.berg@nrlssc.navy.mil
Re: how to update scientific linux 6.1 to 6.2?
On 04/04/2012 10:22 AM, Tam Nguyen wrote: Hi Stephen, thanks for the link. That did it for me. About looping through the alphabet, I was ready to write a bash script. Luckily, my yum.repo didn't give me issue. I just do this from a terminal. I added the sleep when I started seeing one yum process blocking the next for a second or two. *for i in {a..z}* *do* *yum --releasever=6.2 -y update --skip-broken --nogpg ${i}\** *sleep* 3 *done* -- Stephen Berg Systems Administrator NRL Code: 7320 Office: 228-688-5738 stephen.berg@nrlssc.navy.mil
Re: how to update scientific linux 6.1 to 6.2?
Yes, that would also work. Thanks -Tam I just do this from a terminal. I added the sleep when I started seeing one yum process blocking the next for a second or two. *for i in {a..z}**do* *yum --releasever=6.2 -y update --skip-broken --nogpg ${i}\** *sleep* 3*done*
Re: how to update scientific linux 6.1 to 6.2?
I use this script for SL5 and SL6: [root@ladd00 ~]# more update_SL6.sh #!/bin/sh YES=-y cat /etc/redhat-release uname -a /bin/ls -ltr /boot | grep vmli | tail -1 rpm -q triumf-sl-yumconf #[ `uname -i` == x86_64 ] yum remove {perl,gaim,gaim-devel}.i386 rpm -Uvh /triumfcs/mirror/SL/6/`uname -i`/os/Packages/sl-release-6.*.rpm yum clean all yum $YES update triumf-sl-yumconf yum $YES update yum* rpm* yum $YES update [root@ladd00 ~]# K.O. On Wed, Apr 04, 2012 at 09:06:35AM +0300, Eero Volotinen wrote: tried normal redhat way update, without any success: yum upgrade Setting up Upgrade Process No Packages marked for Update why? cat /etc/yum.repos.d/sl.repo [sl] name=Scientific Linux $releasever - $basearch baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/ http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/os/ http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/os/ ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/ #mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6.txt enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson [sl-security] name=Scientific Linux $releasever - $basearch - security updates baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/ http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/ http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/ ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/ #mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-security-6.txt enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson [sl-source] name=Scientific Linux $releasever - Source baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/ http://ftp1.scientificlinux.org/linux/scientific/$releasever/SRPMS/ http://ftp2.scientificlinux.org/linux/scientific/$releasever/SRPMS/ ftp://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson -- Eero -- Konstantin Olchanski Data Acquisition Systems: The Bytes Must Flow! Email: olchansk-at-triumf-dot-ca Snail mail: 4004 Wesbrook Mall, TRIUMF, Vancouver, B.C., V6T 2A3, Canada