Yum upgrade from FC6 to FC7
From MyWiki
Contents |
Pre-Upgrade Procedure
- Install (if necessary)
yum install yum-utils
- Run:
yum update rpm --rebuilddb yum clean all
- Run the following:
for a in $(find /etc /var -name '*.rpm?*'); do b=${a%.rpm?*}; diff -u -q $a $b; done
- and resolve conflicts
- Look for orphaned packages and remove as appropriate
package-cleanup --orphans
- Check /etc/grub.conf
- Reboot
Upgrade Procedure
- as root run:
rpm -Uhv ftp://download.fedora.redhat.com/pub/fedora/linux/releases/7/Fedora/i386/os/Fedora/fedora-release-*.noarch.rpm
- Upgrade the OS via yum:
yum -y --obsoletes update
- Ensure all essential packages from the new version are installed:
yum groupupdate Base
- Run the following:
for a in $(find /etc /var -name '*.rpm?*'); do b=${a%.rpm?*}; diff -u -q $a $b; done
- and resolve conflicts
- Look for orphaned packages and remove as appropriate
package-cleanup --orphans
- Check /etc/grub.conf
- Reboot
Post-Upgrade Procedure
- After reboot, check uname -a and remove any old fc6 kernels, then double check /etc/grub.conf
- Run through this document to ensure the VM still conforms to the standard configuration
http://mywiki.ncsa.uiuc.edu/wiki/Server_Installation
- If this is a mediawiki, the kerberos authentication will break. To fix:
sudo su - (to root) cd rm -rf pam_auth/ rm -rf pam_auth-0.4-4.3.tar.gz cd /usr/lib/php/modules rm pam_auth.so pecl install PAM nano /etc/php.ini change extension=pam_auth.so to extension=pam.so
Troubleshooting
Missing Dependencies
If you get:
Error: Missing Dependency: python(abi) = 2.4 is needed by package rhnlib Error: Missing Dependency: python-optik is needed by package up2date Error: Missing Dependency: python(abi) = 2.4 is needed by package up2date Error: Missing Dependency: python(abi) = 2.4 is needed by package 4Suite Error: Missing Dependency: python-abi = 2.4 is needed by package 4Suite
then
rpm -e rhnlib up2date 4Suite
You can reinstall 4Suite using "yum install python-4Suite-XML" after the upgrade
Shibboleth Dependencies
I also got the missing dependencies below on computer.ncsa.uiuc.edu, which I believe come from Shibboleth ultimately. I'm guessing I need to back Shibboleth out first.
Error: Missing Dependency: libcurl.so.3 is needed by package opensaml Error: Missing Dependency: python(abi) = 2.4 is needed by package authconfig
Possible error with python
- If you get
--> Running transaction check --> Processing Conflict: python-devel conflicts python < 2.4.4-1.fc6 --> Finished Dependency Resolution
- Do the following as root
rpm -qa | grep python
- Look for multiple versions of python
python-2.4.4-1.fc6 python-2.4.3-18.fc6 python-devel-2.4.3-18.fc6
- Remove the version that does not match python-devel
rpm –e python-2.4.4-1.fc6 yum update
ata2.00: exception Emask Errors
Jun 2 09:28:31 f7 kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Jun 2 09:28:31 f7 kernel: ata2.00: (BMDMA stat 0x26) Jun 2 09:28:31 f7 kernel: ata2.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0x4a data 8 in Jun 2 09:28:31 f7 kernel: res 51/50:03:00:00:00/00:00:00:00:00/a0 Emask 0x20 (host bus error) Jun 2 09:28:31 f7 kernel: ata2.00: configured for UDMA/33 Jun 2 09:28:31 f7 kernel: ata2: EH complete
- being logged every two seconds or so, edit VM/Settings on the console and change the CD-ROM Device Node from IDE (thus ata2) to SCSI.
