Yum upgrade from FC8 to FC9
From MyWiki
Contents |
Procedure
- Get current first
yum update yum clean all yum update yum clean all
- Update the yum repo
rpm -Uvh http://mirror.anl.gov/pub/fedora/linux/updates/9/i386/fedora-release-9-5.transition.noarch.rpm http://mirror.anl.gov/pub/fedora/linux/releases/9/Fedora/i386/os/Packages/fedora-release-notes-9.0.0-1.noarch.rpm
- This is important:
yum clean all
- Check the repository list
yum repolist <-- you should see a "updates-newkey" repository
- Check that the new key is imported
rpm -qa gpg-pubkey* <or> rpm -qa gpg-pubkey* | grep 6df2196f gpg-pubkey-4f2a6fd2-3f9d9d3b gpg-pubkey-6df2196f-48b5d596 <-- you should see a line with "6df2196f" gpg-pubkey-1ac70ce6-41bebeef
If not, then do this:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-8-and-9
- Take this package out (see below for details)
rpm -e perl-XML-Encoding
- Do the update
yum -y update
- Reinstall/verify package gnupg2
rpm -qa|grep gnupg2
If not found, then
yum install gnupg2
- Shut down XFS (xorg-x11-xfs is deprecated and causes X problems in F9)
service xfs stop chkconfig --level 12345 xfs off
- Update /etc/inittab
(especially if running the Tivoli client for daily backups)
http://upstart.ubuntu.com
https://wiki.ubuntu.com/ReplacementInit
mv /etc/inittab /etc/inittab.old mv /etc/inittab.rpmnew /etc/inittab
Add the folowing to /etc/rc.d/rc.local (if these lines were in the old inittab)
# TSM Client Scheduler/Web Startup /opt/tivoli/tsm/client/ba/bin/dsmcad nohup /opt/tivoli/tsm/client/ba/bin/dsmc sched > /dev/null 2>&1 &
Note: Check the startup process after boot. I have seen this hang the boot process. Symptom: Startup stops after the "anacron OK" message. Investigation continues.
- Check /etc/grub.conf and reboot
shutdown -r now
- Resolve rpmnew/rpmsave files
find /etc -name *.rpmnew find /etc -name *.rpmsave
Troubleshooting
gnupg2
There's a packaging bug. Before update, remove gnupg2, but re-install it the update.
rpm -e --nodeps gnupg2
perl-XML-Encoding
Dependency problem, fixed by:
rpm -e perl-XML-Encoding
Informational
Default Environment Variables
There has been a change in how environment variables are set for non-interactive shells. One situation where this applies is when commands are issued via SSH of the form:
ssh user@host 'command'
For example, the LANG environment variable is no longer being set, which will cause changes in the formats for dates, etc. The solution (for this specific problem) is to explicitly set the LANG environment variable as follows:
export LANG=en_US.UTF-8
This problem arose in Fedora 9 (actually starting with rpm package setup at version 2.6.12) due to a change in /etc/bashrc. Previously /etc/profile.d/* scripts were executed as part of the /etc/bashrc script, but not any more.
