Yum upgrade from FC7 to FC8

From MyWiki

Jump to: navigation, search

The instructions at ioncannon.net worked almost perfectly for me. I had to remove the 'devhelp' and 'yelp' packages, though, due to a Gecko dependency. After rebooting, I reinstalled them without a problem.

To avoid linkrot, here's the page contents:

Fedora 8 has been released so it is time to upgrade once again.
First you should go back and upgrade to Fedora 7 if you haven't already.
From there it is even easier this  time to upgrade.
Here are the steps you need to do the upgrade from Fedora 7 to Fedora 8:
yum update
yum clean all
I like to repeated update and clean all a second time to make sure everything got updated
Run the following command to update the yum repo on your box: 
rpm -Uhv http://mirror.anl.gov/pub/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-8-3.noarch.rpm \
 http://mirror.anl.gov/pub/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-notes-8.0.0-3.noarch.rpm
Next do a yum -y update
I needed to remove a couple packages to get the dependencies to work out.
This seems to be a normal need now when upgrading but isn't usually a big deal.
In this case I had to remove the heliodor and beryl-settings that both had to do with beryl.
In my case the total set of packages it needed to download was 1.2G so it took about an hour to download and install. Now it was time for a reboot.
The reboot went so fast I almost didn't believe it rebooted. This was the smoothest upgrade I have had so far.

Contents

ALERT: Fedora Key Resigning BREAKS The Above Procedure

Symptom

During the yum update, you will receive Missing Dependency-type errors of the form "fc7 package version is higher than the fc8 package version". Some specific rpm packages affected include:

  • gecko-libs
  • libsmbios-libs
  • libnss
  • kernel

The Cause

In response to a recent security problem, Fedora resigned all the rpm packages, and placed them in a different "basearch"!!! The FC7 yum configuration files know nothing of this new arch (i.e. "i386.newkey"), so the yum update does not "see" any of the updated packages, only the packages included in the initial release of FC8.

How To Fix

This is the complete upgrade procedure:

yum update
yum clean all
yum update
yum clean all
 
rpm -Uvh http://mirror.anl.gov/pub/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-8-3.noarch.rpm
rpm -Uvh http://mirror.anl.gov/pub/fedora/linux/releases/8/Fedora/i386/os/Packages/fedora-release-notes-8.0.0-3.noarch.rpm
 
rpm -Uvh http://kojipkgs.fedoraproject.org/packages/fedora-release/8/6.transition/data/signed/4f2a6fd2/noarch/fedora-release-8-6.transition.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-8-and-9
 
yum -y update
 
shutdown -r now


Kerberos Authentication in MediaWiki

If the Kerberos authentication in Mediawiki stop working, and you see these errors in /var/log/messages:

Sep 13 09:37:58 ittf httpd: PHP Warning:  PHP Startup: pam_auth: Unable to initialize module#012Module compiled with module API=20050922, debug=0, thread-safety=0#012PHP    compiled with module API=20060613, debug=0, thread-safety=0#012These options need to match#012 in Unknown on line 0
Sep 13 09:38:44 ittf httpd: PHP Fatal error:  Call to undefined function pam_auth() in /var/www/mediawiki-1.10.0/extensions/NCSAAuthPlugin.php on line 14

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

avahi

After the upgrade, yum automatic updates won't, unless you:

rpm -e --noscripts avahi-0.6.17.1.fc7
Personal tools