#title Upgrading Red Hat Linux/Fedora Core with yum RenameThisPage UpgradingRedHatLinuxFedoraCoreWithYum = yumÀ¸·Î ·¹µåÇÞ ¸®´ª½º/Æäµµ¶ó ÄÚ¾î ¾÷±×·¹À̵å Çϱâ = CD³ª DVD ¼³Ä¡ °°Àº ±âº»ÀûÀÎ ¹æ¹ýÀÌ ¾Æ´Ñ yumÀ» ÀÌ¿ëÇÏ¿© ·¹µåÇò ¸®´ª½º³ª Æäµµ¶ó¸¦ ¾÷±×·¹À̵带 ÇÒ ¼ö ÀÖ´Ù. ¾÷±×·¹À̵å ÇÏ´Â ¹æ¹ýÀÌ ½±Áö ¾ÊÀ¸¹Ç·Î, ¹Ýµå½Ã °æÇè ÀÖ´Â ·¹µåÇÞ ¸®´ª½º ¹× Æäµµ¶ó »ç¿ëÀÚ°¡ ¼öÇàÇϱ⸦ ¹Ù¶õ´Ù. yum ('''Y'''ellow dog '''U'''pdater, '''M'''odified)Àº ¶Ù¾î³­ ÆÐÅ°Áö °ü¸® ÅøÀÌ´Ù. 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 }}} 1. Æäµµ¶ó ¹Ì·¯ »çÀÌÆ® Áß ÇÑ °÷¿¡¼­ Æäµµ¶ó ÄÚ¾î 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 }}} 1. Æäµµ¶ó ÄÚ¾î 3ÀÇ fedora-release¿Í yum ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÕ´Ï´Ù. (Ãæµ¹ÀÌ ÀϾ¸é --force ¿É¼ÇÀ» »ç¿ëÇϽʽÿÀ.) 1. Fedora Core 3À¸·Î ¾÷±×·¹À̵å ÇÕ´Ï´Ù. {{{ yum upgrade }}} 1. Àá½Ã ±â´Ù¸®¸é 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: rpm -Uvh ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/2/i386/os/Fedora/RPMS/yum-2.0.7-1.1.noarch.rpm \ ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/2/i386/os/Fedora/RPMS/fedora-release-2-4.i386.rpm 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: [base] name=Fedora Core $releasever - $basearch - Base baseurl=ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/$releasever/$basearch/os/ #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/ [updates-released] name=Fedora Core $releasever - $basearch - Released Updates baseurl=ftp://ftp.linux.ncsu.edu/pub/fedora/linux/core/updates/$releasever/$basearch/ #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/ 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: 1. Download and install the Fedora version of yum: rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/Fedora/RPMS/yum-2.0.4-2.noarch.rpm 2. Download and install the fedora-release package. rpm -Uvh http://download.fedora.redhat.com/pub/fedora/linux/core/1/i386/os/Fedora/RPMS/fedora-release-1-3.i386.rpm 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