{"id":101,"date":"2008-11-29T12:22:57","date_gmt":"2008-11-29T05:22:57","guid":{"rendered":"http:\/\/blog.iwayvietnam.com\/tuanta\/2008\/11\/29\/upgrade-fedora-core-9-to-10-using-yum\/"},"modified":"2008-12-01T14:34:26","modified_gmt":"2008-12-01T07:34:26","slug":"upgrade-fedora-core-9-to-10-using-yum","status":"publish","type":"post","link":"https:\/\/blog.iwayvietnam.com\/tuanta\/2008\/11\/upgrade-fedora-core-9-to-10-using-yum\/","title":{"rendered":"Upgrade Fedora Core 9 to 10 using yum"},"content":{"rendered":"<p>Ch\u00e0o m\u1ecdi ng\u01b0\u1eddi,<\/p>\n<p><a href=\"http:\/\/blog.iwayvietnam.com\/tuanta\/2008\/11\/28\/welcome-to-fedora-10\/\">Fedora Core 10<\/a> \u0111\u00e3 ch\u00ednh th\u1ee9c \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh.<\/p>\n<p>Hi\u1ec7n t\u1ea1i, iWay c\u0169ng \u0111\u00e3 download LiveCD, full install DVD v\u00e0 t\u1ea1o local repositories cho FC10.<\/p>\n<p>M\u1ecdi ng\u01b0\u1eddi c\u00f3 th\u1ec3 upgrade t\u1eeb FC9 hi\u1ec7n t\u1ea1i l\u00ean FC10 m\u1edbi v\u1edbi nhi\u1ec1u t\u00ednh n\u0103ng c\u1eadp nh\u1eadt theo c\u00e1c b\u01b0\u1edbc sau:<\/p>\n<ol>\n<li>N\u1ebfu \u0111ang d\u00f9ng b\u1ea3n OpenOffice 3.0 c\u00e0i ri\u00eang th\u00ec n\u00ean remove tr\u01b0\u1edbc:<\/li>\n<p><code>yum remove openoffice.org3* ooobasis3*<\/code><\/p>\n<li>Disable c\u00e1c 3rd-party repositories<\/li>\n<p>V\u00e0o th\u01b0 m\u1ee5c <code>\/etc\/yum.repos.d<\/code> \u0111\u1ed5i t\u00ean t\u1ea5t c\u1ea3 file <code>.repo<\/code> th\u00e0nh <code>.repo.bak<\/code> tr\u1eeb 2 files <code>fedora.repo<\/code> v\u00e0 <code>local.repo<\/code><\/p>\n<li>C\u00e0i \u0111\u1eb7t yum-fastestmirror:<\/li>\n<p><code>yum -y install yum-fastestmirror<\/code><\/p>\n<li>Clean\u00a0 h\u1ebft yum cache:<\/li>\n<p><code>yum clean all<\/code><\/p>\n<li>C\u00e0i g\u00f3i fedora-release-* cho phi\u00ean b\u1ea3n 10 m\u1edbi:<\/li>\n<p><code>rpm -Uvh http:\/\/mirror.iwayvietnam.com:9090\/yum\/base\/10\/i386\/fedora-release-10-1.noarch.rpm http:\/\/mirror.iwayvietnam.com:9090\/yum\/base\/10\/i386\/fedora-release-notes-10.0.0-1.noarch.rpm<\/code><\/p>\n<li>\u0110\u1ea3m b\u1ea3o phi\u00ean b\u1ea3n m\u1edbi kh\u00f4ng b\u1ecb save d\u01b0\u1edbi t\u00ean file .rpmnew:<\/li>\n<p><code>ll \/etc\/yum.repos.d\/*.rpmnew<\/code><\/p>\n<p>Note: l\u1ec7nh n\u00e0y ph\u1ea3i kh\u00f4ng show ra file n\u00e0o.<\/p>\n<li>S\u1eeda repository &#8220;updates-newkey&#8221; v\u1ec1 &#8220;updates&#8221;:<\/li>\n<p>S\u1eeda file: <code>\/etc\/yum.repos.d\/local.repo<\/code><\/p>\n<p>D\u00f2ng: <code>baseurl=http:\/\/mirror.iwayvietnam.com:9090\/yum\/updates\/$releasever\/$basearch.newkey\/<\/code><\/p>\n<p>Th\u00e0nh: <code>baseurl=http:\/\/mirror.iwayvietnam.com:9090\/yum\/updates\/$releasever\/$basearch\/<\/code><\/p>\n<li>Upgrade c\u00e1c g\u00f3i quan tr\u1ecdng tr\u01b0\u1edbc:<\/li>\n<p><code>yum -y update rpm\\* yum\\* glibc\\*<\/code><\/p>\n<li>Upgrade t\u1ea5t c\u1ea3 c\u00e1c packages:<\/li>\n<p><code>yum -y upgrade<\/code><\/p>\n<p>Note: yum c\u00f3 th\u1ec3 s\u1ebd ph\u1ea3i t\u1ef1 download m\u1ed9t s\u1ed1 g\u00f3i ch\u01b0a c\u00f3 trong local repositories n\u00ean ti\u1ebfn tr\u00ecnh c\u00f3 th\u1ec3 h\u01a1i ch\u1eadm t\u1ea1i nh\u1eefng \u0111i\u1ec3m \u0111\u00f3. Tu\u1ef3 theo t\u1ed1c \u0111\u1ed9 k\u1ebft n\u1ed1, ti\u1ebfn tr\u00ecnh upgrade c\u00f3 th\u1ec3 k\u00e9o d\u00e0i kho\u1ea3ng 1-2 hours. Trong tr\u01b0\u1eddng h\u1ee3p th\u1ea5y t\u1ed1c \u0111\u1ed9 k\u1ebft n\u1ed1i hi\u1ec7n h\u00e0nh qu\u00e1 th\u1ea5p (d\u01b0\u1edbi 10Kbps) c\u00f3 th\u1ec3 nh\u1ea5n Ctrl+C 1 l\u1ea7n \u0111\u1ec3 yum t\u1ef1 ch\u1ecdn l\u1ea1i mirror kh\u00e1c nhanh h\u01a1n (2 l\u1ea7n s\u1ebd l\u00e0 d\u1eebng yum, ph\u1ea3i ch\u1ea1y l\u1ea1i l\u1ec7nh upgrade).<\/p>\n<p>Trong qu\u00e1 tr\u00ecnh upgrade, c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng m\u00e1y t\u00ednh b\u00ecnh th\u01b0\u1eddng, nh\u01b0ng nh\u1edb kh\u00f4ng \u0111\u01b0\u1ee3c reboot ho\u1eb7c l\u00e0m b\u1ea5t c\u1ee9 vi\u1ec7c g\u00ec l\u00e0m d\u1eebng qu\u00e1 tr\u00ecnh upgrade; \u0111\u1eb7c laptops ch\u00fa \u00fd c\u1eafm \u0111i\u1ec7n ph\u00f2ng tr\u01b0\u1eddng h\u1ee3p h\u1ebft pin.<\/p>\n<p>\u0110\u00e2y l\u00e0 th\u1eddi gian b\u1ea1n c\u00f3 th\u1ec3 th\u01b0 gi\u00e3n, u\u1ed1ng ly c\u00e0 ph\u00ea, hay ch\u01a1i 1 s\u00e9c b\u00f3ng b\u00e0n \ud83d\ude42<\/p>\n<li>\u0110\u1ea3m b\u1ea3o c\u00e1c g\u00f3i c\u1ea7n thi\u1ebft \u0111\u00e3 \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t:<\/li>\n<p><code>yum groupupdate Base<br \/>\nyum grouplist<\/code><\/p>\n<li>C\u00e0i \u0111\u1eb7t boot loader m\u1edbi:<\/li>\n<p>Xem BOOTDEVICE: <code>df -h \/boot<\/code><br \/>\nL\u1ea5y th\u00f4ng tin BOOTDEVICE l\u00e0 Filesystem (e.g. <code>\/dev\/sda3<\/code>) b\u1ecf ph\u1ea7n s\u1ed1 \u0111i (e.g. <code>\/dev\/sda<\/code>)<br \/>\nC\u00e0i \u0111\u1eb7t: <code>\/sbin\/grub-install BOOTDEVICE<\/code><\/p>\n<li>Reset th\u1ee9 t\u1ef1 \u01b0u ti\u00ean c\u00e1c init scripts:<\/li>\n<p><code>cd \/etc\/rc.d\/init.d; for f in *; do \/sbin\/chkconfig $f resetpriorities; done<\/code><\/p>\n<li>Check xem c\u00f2n g\u00f3i n\u00e0o ch\u01b0a \u0111\u01b0\u1ee3c n\u00e2ng c\u1ea5p:<\/li>\n<p><code>package-cleanup --orphans<\/code><\/p>\n<li>Reboot<\/li>\n<li>N\u1ebfu \u1edf b\u01b0\u1edbc 1 \u0111\u00e3 remove OpenOffice 3.0 th\u00ec b\u00e2y gi\u1edd l\u00e0 l\u00fac c\u00e0i \u0111\u1eb7t l\u1ea1i:<\/li>\n<p><code>yum -y install openoffice.org*<\/code><\/p>\n<li>V\u00e0 update c\u00e1c g\u00f3i ph\u1ea7n m\u1ec1m m\u1edbi nh\u1ea5t:<\/li>\n<p><code>yum -y update<\/code><\/ol>\n<p>Fedora Core 10 \u0111\u00e3 s\u1eb5n s\u00e0ng ch\u1edd b\u1ea3n tr\u1ea3i nghi\u1ec7m.<\/p>\n<p>Enjoy it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ch\u00e0o m\u1ecdi ng\u01b0\u1eddi, Fedora Core 10 \u0111\u00e3 ch\u00ednh th\u1ee9c \u0111\u01b0\u1ee3c ph\u00e1t h\u00e0nh. Hi\u1ec7n t\u1ea1i, iWay c\u0169ng \u0111\u00e3 download LiveCD, full install DVD v\u00e0 t\u1ea1o local repositories cho FC10. M\u1ecdi ng\u01b0\u1eddi c\u00f3 th\u1ec3 upgrade t\u1eeb FC9 hi\u1ec7n t\u1ea1i l\u00ean FC10 m\u1edbi v\u1edbi nhi\u1ec1u t\u00ednh n\u0103ng c\u1eadp nh\u1eadt theo c\u00e1c b\u01b0\u1edbc sau: N\u1ebfu \u0111ang d\u00f9ng b\u1ea3n OpenOffice<a class=\"more-link\" href=\"https:\/\/blog.iwayvietnam.com\/tuanta\/2008\/11\/upgrade-fedora-core-9-to-10-using-yum\/\">Continue reading <span class=\"screen-reader-text\">&#8220;Upgrade Fedora Core 9 to 10 using yum&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,4],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-linux","category-tips","entry"],"_links":{"self":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/101"}],"collection":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":0,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iwayvietnam.com\/tuanta\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}