Personal tools
You are here: Home Documentation Tips Upgrade to Latest slf6x
Views
Document Actions

Upgrade to Latest slf6x

by Patrick Riehecky last modified 2012-11-14 08:40
History
Action Performed by Date and Time Comment
Publish Patrick Riehecky 2012-11-14 09:38 No comments.

This page will walk you through upgrading from one 'point' release to another. Say, from SLF6.1 to SLF6.2, to simply move to slf6x install 'yum-conf-slf6x' and add any excludes you require for your system.

You will need root access to proceed


For SLF6.1 users

You will need to verify your yum repos are configured correctly. You will need to verify that /etc/yum.repos.d/slf.repo contains these settings. In particular the baseurl= lines must be set correctly:

[slf]
name=Scientific Linux Fermi $releasever - $basearch
baseurl=http://linux1.fnal.gov/linux/fermi/slf$releasever/$basearch/os/
		ftp://linux.fnal.gov/linux/fermi/slf$releasever/$basearch/os/
		ftp://linux1.fnal.gov/linux/fermi/slf$releasever/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern
exclude=some-rpms-you-dont-want-installed-or-upgraded

[slf-security]
name=Scientific Linux Fermi $releasever - $basearch - security
baseurl=http://linux1.fnal.gov/linux/fermi/slf$releasever/$basearch/updates/security/
		ftp://linux.fnal.gov/linux/fermi/slf$releasever/$basearch/updates/security/
		ftp://linux1.fnal.gov/linux/fermi/slf$releasever/$basearch/updates/security/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl6 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-cern
exclude=some-rpms-you-dont-want-installed-or-upgraded

There may be extra stanzas, one for SRPMs for example, and you may add exclude= lines if you need them to keep the system running the way you desire. The some-rpms-you-dont-want-installed-or-upgraded line is provided as an example. The key piece is slf$releasever which will allow us to specify versions.

Once the yum repo file baseurl lines are configured please follow the steps in the next section.

For All SLF6 users

Before running an update, ensure your system is up to date. This should eliminate any complex update decisions
yum update

Determine which version of SLF6 you wish to use. For this example I will use SLF6.2. You will see 6.2 in the following commands as a result of that choice.

Before performing a massive update, it is helpful to ensure you've got an updated version of yum.
yum --releasever=6.2 install yum

Make sure you have plenty of space in /var/cache/yum as this update may involve lots of downloaded packages.
yum --enablerepo=* clean all

Before going further make sure you have a good backup of your system and that you can reboot it when the process is completed.

Once a backup is done, we are ready to update the system. This will take a while so be ready. Some packages may complain about dependency problems. You will need to resolve them if they do. yum --releasever=6.2 update

Once all this is done, verify you have reached the new release. This command should return something like slf-release-6.2-1.x86_64 if the upgrade was succesful. It should return nothing if it was unsuccessful
rpm -q slf-release|grep 6.2

If everything is fine, simply reboot the system when you are authorized.
reboot


Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: