Fedora 9 will release but it is time to feel it. This time to upgrade.
1. Open a Terminal.
2. Become root:
su -
3. Install the yum-priorities package:
yum -y install yum-priorities
4. Fix the yum-priorities configuration, by opening up a file:
nano /etc/yum/pluginconf.d/priorities.conf
5. The contents of that file look like:
[main]
enabled = 1
6. You need to add the line check_obsoletes = 1 to the bottom of the file, so that it looks like:
[main]
enabled = 1
check_obsoletes = 1
7. And then save the file and close it How to save? enter ctrl+X --> y --> enter. Double check whether it has enter or not.
8. Let’s upgrade Moonshine ( Fedora 7 ) or Moonshine (fedora 9) to Rawhide ( Fedora 9 ) in three easy steps. First things first, lets print out some version info:
$ cat /etc/*release
Fedora release 7 (Moonshine)
Fedora release 7 (Moonshine)
$ uname -r
2.6.23.1-21.fc7
9. Its easy to tell that this machine is indeed using Moonshine ( Fedora 7 ), so let’s upgrade!
Step 1 - Modify the yum repo files
10. Located in /etc/yum.repos.d directory are where the yum repository files are stored. We need to modify one line so that yum will know where to look:
$ su -
# gedit /etc/yum.repos.d/fedora.repo
11. Find the first line that starts:
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
and change it:
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-9&arch=$basearch
12. What changed? Well, the $releasever value is the current value for our version of fedora, in this case 7. By changing it to 9, it’ll load the correct repositories for Rawhide (F9) instead of Moonshine (F7). Or if you interest to fedora 8, just change to 8. Save the file, and now we’re ready to move onto the next step.
11. Here are the steps you need to do the upgrade from Fedora 7 to Fedora 9:
a. yum update
b. yum clean all
c. I repeated yum clean all many time to make sure everything got clean.
d. Run the following command to update the yum repo on your box:
# rpm -Uhv http://mirror.anl.gov/pub/fedora/linux/releases/test/9-Beta/Fedora/i386/os/Packages/fedora-release-notes-8.90-1.noarch.rpm http://mirror.anl.gov/pub/fedora/linux/releases/test/9-Beta/Fedora/i386/os/Packages/fedora-release-8.92-1.noarch.rpm
If you use fedora 7 and don't interest to fedora 9 and want to keep in touch with fedora 8, use this command:
# 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
12. Next do a "yum upgrade" at terminal console as a root
13. 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.
14.
It's work for me because I did in fresh installation of fedora 7 to fedora 9
This is not important, but surely must keep it.
1. The NOKEY warning is not really a problem. It won't prevent you from doing anything. (The yum error, though, will usually prevent you from installing software.) If you'd like to resolve it, do the following command to get the correct key for the site you're downloading from:
2. You must be root to do any of this.
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY
rpm --import http://freshrpms.net/RPM-GPG-KEY-freshrpms
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import http://atrpms.net/RPM-GPG-KEY.atrpms
rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
rpm --import http://apt.sw.be/dries/RPM-GPG-KEY.dries.txt
rpm --import http://www.jpackage.org/jpackage.asc
* kde-redhat:
rpm --import http://kde-redhat.sourceforge.net/gpg-pubkey-ff6382fa-3e1ab2ca
rpm --import http://ccrma.stanford.edu/planetccrma/RPM-GPG-KEY.planetccrma.diaa