· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Upgrading Red Hat Linux/Fedora Core with yum

RenameThisPage UpgradingRedHatLinuxFedoraCoreWithYum

yum으로 레드햇 리눅스/페도라 코어 업그레이드 하기


CD나 DVD 설치 같은 기본적인 방법이 아닌 yum을 이용하여 레드헷 리눅스나 페도라를 업그레이드를 할 수 있다. 업그레이드 하는 방법이 쉽지 않으므로, 반드시 경험 있는 레드햇 리눅스 및 페도라 사용자가 수행하기를 바란다.

yum (Yellow dog Updater, Modified)은 뛰어난 패키지 관리 툴이다. yum을 이용하면 의존성 문제를 신경 쓸 필요 없이 패키지 설치가 가능하고 시스템을 항상 최신 버전으로 유지 할수 있다. yum이 몇 가지 뛰어난 특징을 가지고 있긴 하지만 apt-rpm이나 up2date와 비슷하다. 또 apt의 dist-upgrade 기능처럼 릴리즈 업그레이드를 쉽게 할 수 있다.

(이론적으로) 헤더 파일의 저장 정보에 따라 모든 레드햇 리눅스나 페도라 코어를 다른 버전으로 업그레이드 할수 있다.
  • Red Hat Linux 7.2 to 9
  • Red Hat Linux 8.0 to 9
  • Red Hat Linux 8.0 to Fedora Core 2
  • Red Hat Linux 9 to Fedora Core 1
  • Fedora Core 1 to Fedora Core 2
  • Fedora Core 2 to Fedora Core 3

Fedora Core 3로 업그레이드


시작하기 전에 fedora-test-list 메일링 리스트에서 FC2에서 FC3로 업그레이드 하는 법에 대한 Seth Vidal의 포스트를 읽어 보십시오. (그는 yum의 개발자 입니다.)

  1. 먼저 페도라 프로젝트의 gpg 키가 설치 되었는지 확인합니다.
    rpm -q gpg-pubkey-6b8d79e6-3f49313d
    gpg-pubkey-6b8d79e6-3f49313d
    
    • gpg 키가 설치 되어 있지 않고 페도라 코어를 사용 하고 있다면 다음 명령어로 설치합니다.
      rpm --import /usr/share/rhn/RPM-GPG-KEY-fedora
      
    • gpg 키가 설치 되어 있지 않고 페도라 코어를 사용하지 않는다면, 다음 명령어로 설치합니다.
      rpm --import http://fedora.redhat.com/about/security/4F2A6FD2.txt
      
  2. 페도라 미러 사이트 중 한 곳에서 페도라 코어 3의 fedora-release와 yum 패키지를 내려 받습니다.
    (예:)
    wget http://fedora.glorb.com/core/3/i386/os/Fedora/RPMS/fedora-release-3-8.i386.rpm
    wget http://fedora.glorb.com/core/3/i386/os/Fedora/RPMS/yum-2.1.11-3.noarch.rpm
    
  3. 페도라 코어 3의 fedora-release와 yum 패키지를 설치합니다. (충돌이 일어나면 --force 옵션을 사용하십시오.)
  4. Fedora Core 3으로 업그레이드 합니다.
    yum upgrade
    
  5. 잠시 기다리면 yum이 업그레이드될 패키지, 새로 설치될 패키지의 목록을 보여줄 것입니다. "y"를 선택하여 패키지를 내려 받아 설치합니다.
    Is this ok [y/N]: y
    


알려진 문제점:

When upgrading from Fedora Core 2 to Fedora Core 3 on one of my systems, yum upgrade experienced dependency problems with many packages, likely due to this bug in rpm. rpm 4.3.1-0.3 was installed when this problem occurred.

예: Error: Requiring package gnome-vfs2-2.8.2-8.i386 not in transaction set nor in rpmdb

Installing the Fedora Core 3 versions of rpm (4.3.2-21) and its dependencies (rpm-python, rpm-build, rpm-devel) and re-running yum upgrade fixed the problem.

  1. Fedora Core 3를 사용하기 위해 시스템을 다시 시작합니다.

참고: you may want to modify /boot/grub/grub.conf and choose the new 2.6.9 kernel (uniprocessor or SMP) as the default kernel as yum upgrade will not modify the default kernel chosen by the grub bootloader. Remember that grub counts the first listed kernel as number 0.

/boot/grub/grub.conf after yum upgrade:

default=2 timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz title Fedora Core (2.6.9-1.667)
root (hd0,0) kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ initrd /initrd-2.6.9-1.667.img
title Fedora Core (2.6.9-1.667smp)
root (hd0,0) kernel /vmlinuz-2.6.9-1.667smp ro root=LABEL=/ initrd /initrd-2.6.9-1.667smp.img
title Fedora Core (2.6.6-1.435.2.3smp)
root (hd0,0) kernel /vmlinuz-2.6.6-1.435.2.3smp ro root=LABEL=/ initrd /initrd-2.6.6-1.435.2.3smp.img
title Fedora Core (2.6.6-1.435.2.3)
root (hd0,0) kernel /vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ initrd /initrd-2.6.6-1.435.2.3.img

/boot/grub/grub.conf after manual modification:

default=1 timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz title Fedora Core (2.6.9-1.667)
root (hd0,0) kernel /vmlinuz-2.6.9-1.667 ro root=LABEL=/ initrd /initrd-2.6.9-1.667.img
title Fedora Core (2.6.9-1.667smp)
root (hd0,0) kernel /vmlinuz-2.6.9-1.667smp ro root=LABEL=/ initrd /initrd-2.6.9-1.667smp.img
title Fedora Core (2.6.6-1.435.2.3smp)
root (hd0,0) kernel /vmlinuz-2.6.6-1.435.2.3smp ro root=LABEL=/ initrd /initrd-2.6.6-1.435.2.3smp.img
title Fedora Core (2.6.6-1.435.2.3)
root (hd0,0) kernel /vmlinuz-2.6.6-1.435.2.3 ro root=LABEL=/ initrd /initrd-2.6.6-1.435.2.3.img
Upgrading to Fedora Core 2 You may want to read the following notes from the author of yum author about upgrading from Fedora Core 1 to Fedora Core 2: http://linux.duke.edu/~skvidal/misc/fc1-fc2-yum-hints.txt

Here are the steps I used to upgrade a system from Fedora Core 1 to Fedora Core 2:

1. Install the Fedora Core 2 version of yum and fedora-release:


2. If yum was already installed prior to the upgrade, backup your old /etc/yum.conf file and replace /etc/yum.conf with /etc/yum.conf.rpmnew.

mv /etc/yum.conf /etc/yum.conf.date +%m.%d.%y mv /etc/yum.conf.rpmnew /etc/yum.conf

3. Edit /etc/yum.conf. Choose a mirror from http://fedora.redhat.com/download/mirrors.html to the base and updates-released sections.

Original base and updates-released sections:

base name=Fedora Core $releasever - $basearch - Base baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/

updates-released name=Fedora Core $releasever - $basearch - Released Updates baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/

New base and updates-released sections:



4. Upgrade to Fedora Core 2. yum upgrade Upgrading to Fedora Core 1 Here are the steps I used to upgrade a system to Fedora Core 1:



3. Upgrade to Fedora Core 1. yum upgrade

Upgrading to Red Hat Linux 9 Here are the steps I used to upgrade a Red Hat Linux 8.0 system to Red Hat Linux 9.

1. Download and install the latest version of yum. rpm -Uvh http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.4-1.noarch.rpm

2. Download and install the redhat-release package from the "new" version of Red Hat Linux. rpm -Uvh ftp://ftp.quicknet.nl/pub/Linux/ftp.redhat.com/9/en/os/i386/RedHat/RPMS/redhat-release-9-3.i386.rpm

3. If the gnome-mime-data package is installed (confirm with rpm -q gnome-mime-data), change exactarch=1 to exactarch=0 in /etc/yum.conf.

4. Upgrade to Red Hat Linux 9. yum upgrade

5. If applicable, change exactarch=0 back to exactarch=1 in /etc/yum.conf.

The following are some problems I ran into with the upgrade from Red Hat Linux 8.0 to Red Hat Linux 9.

Problem:

Resolving dependencies .package apt needs librpm-4.1.so (not provided) package apt needs librpmdb-4.1.so (not provided) package apt needs librpmio-4.1.so (not provided) package apt needs libelf.so.0 (not provided)

Solution: rpm -e apt (I will use yum instead of apt for rpm for package management; I could always manually reinstall apt for rpm after the upgrade)


Problem:

Resolving dependencies .......identical dependency loop exceeded package gnome-vfs2 needs gnome-mime-data >= 2.0.0-11 (not provided)

Solution: Set exactarch=0 in /etc/yum.conf. The Red Hat Linux 9 gnome-mime-data package is of a different architecture (i386) than the Red Hat Linux 8.0 package (noarch). You may want to change back to exactarch=1 after the yum upgrade.


Problem: after rebooting into the new kernel, my eth0 network interface was brought up with a static address and then with dhcp. During the upgrade process, the file /etc/sysconfig/network-scripts/ifcfg-eth0.dhcp was created. You may want to check /etc/sysconfig/network-scripts for any changes prior to rebooting after the upgrade.

Back to brandonhutchinson.com. Last modified: 11/16/2004



sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-02-05 19:08:38
Processing time 0.0116 sec