{"id":1469,"date":"2011-06-28T13:02:13","date_gmt":"2011-06-28T18:02:13","guid":{"rendered":"http:\/\/icesquare.com\/wordpress\/?p=1469"},"modified":"2012-08-14T18:08:57","modified_gmt":"2012-08-14T23:08:57","slug":"upgrade-fedora-linux-using-command-line","status":"publish","type":"post","link":"https:\/\/icesquare.com\/wordpress\/upgrade-fedora-linux-using-command-line\/","title":{"rendered":"Upgrade Fedora Linux Using Command Line"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" data-attachment-id=\"1508\" data-permalink=\"https:\/\/icesquare.com\/wordpress\/upgrade-fedora-linux-using-command-line\/fedora-logo\/#main\" data-orig-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo.png\" data-orig-size=\"275,272\" data-comments-opened=\"1\" data-image-title=\"Fedora\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo.png\" src=\"\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo-150x150.png\" alt=\"\" title=\"Fedora\" class=\"alignleft size-thumbnail wp-image-1508\" srcset=\"https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo-150x150.png 150w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo-177x177.png 177w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo-35x35.png 35w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo-164x164.png 164w, https:\/\/icesquare.com\/wordpress\/wp-content\/uploads\/2011\/08\/fedora-logo-185x185.png 185w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/p>\n<p>Recently, I decide to upgrade all of the Fedora Linux servers. As of today, the latest version is Fedora 15. As for my servers, they are in between Fedora 11 and 14. In the other words, I will need to upgrade some machine from 11 all the way to 15. <\/p>\n<p>There are several ways to upgrade the Fedora system. You can either do it through the GUI (With physical access to the machine), GUI (Though VNC), or command line. I prefer the last option because I have limited number of monitors and input devices.<\/p>\n<p>I haven&#8217;t tried upgrading Fedora through command line before. The experience is very different comparing to FreeBSD. So I am going to list out what I have done step by step:<\/p>\n<p>1. Backup your data. Although I haven&#8217;t experienced any data loss during the upgrade. It is always a good idea to have a backup first.<\/p>\n<p>2. Make sure that your system is up to date with your current version:<\/p>\n<pre>\r\nsudo yum update\r\n<\/pre>\n<p>3. Install preupgrade:<\/p>\n<pre>\r\nsudo yum install preupgrade -y\r\n<\/pre>\n<p>4. Run the preupgrade:<\/p>\n<pre>\r\nsudo preupgrade-cli \"Fedora 15 (Lovelock)\"\r\n<\/pre>\n<p>It will download the packages from the server. Depending on your system settings, my system downloaded around 1500 packages, which took about 10 to 20 minutes. After that, it will prompt to reboot the machine.<\/p>\n<p><\/p>\n<p>5. This step is optional. Connect your monitor, keyboard and mouse to the machine.<\/p>\n<p>6. Reboot your server<\/p>\n<pre>\r\nsudo reboot\r\n<\/pre>\n<p>7. Now the system will boot into the upgrade interface and perform the upgrade. Notice that this step can easily take 2 to 3 hours (My machine: Q6700 Quad Core, Ram: 8GB). During the upgrade, you cannot remotely access the computer. If you try to connect a monitor \/ keyboard \/ mouse, it may give no response. Just be patient and wait. It is not a good idea to reboot your machine at this stage.<\/p>\n<p>8. After waiting for nearly 2.5 hour (2 hours to unpack and install the package, half hour to clean up the package), the machine finally reboots.<\/p>\n<p>9. You should be able to remotely access this machine from SSH. Run the following command to determine your Fedora version:<\/p>\n<pre>\r\ncat \/etc\/redhat-release && uname -a\r\n<\/pre>\n<p>10. Run the following commands to clean up the system:<\/p>\n<pre>\r\nsudo yum update\r\nsudo package-cleanup --orphans\r\nsudo updatedb\r\nsudo yum repolist \r\nsudo yum distro-sync \r\n<\/pre>\n<p>10. Enjoy your new system.<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I decide to upgrade all of the Fedora Linux servers. As of today, the latest version is Fedora 15. As for my servers, they are in between Fedora 11 <a class=\"more-link\" href=\"https:\/\/icesquare.com\/wordpress\/upgrade-fedora-linux-using-command-line\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[144,6],"tags":[49,48],"class_list":["post-1469","post","type-post","status-publish","format-standard","hentry","category-sever-problem","category-technology","tag-fedora","tag-linux"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1sqzr-nH","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":454,"url":"https:\/\/icesquare.com\/wordpress\/fedora-linux-12-is-out-today\/","url_meta":{"origin":1469,"position":0},"title":"Fedora Linux 12 is out today","author":"Derrick","date":"November 17, 2009","format":false,"excerpt":"Fedora Linux 12 is out today. Here are the links to download Fedora 12: Download Fedora 12 64-Bit Download Fedora 12 32-Bit Download Fedora 12 PowerPC All versions Suggestions: I found that the downloading speed varies depends on which mirror you get. I suggest to test the download speed first,\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":505,"url":"https:\/\/icesquare.com\/wordpress\/solvedfedora-repository-error-errno-14-pycurl-error-6\/","url_meta":{"origin":1469,"position":1},"title":"[Solved]Fedora Linux Repository Error ([Errno 14] PYCURL ERROR 6)","author":"Derrick","date":"January 4, 2010","format":false,"excerpt":"I was having trouble to update my Fedora Linux system by running sudo yum update. sudo yum update Loaded plugins: presto, refresh-packagekit Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again sometimes I see different sets of error: http:\/\/download.fedoraproject.org\/pu...ta\/repomd.xml: [Errno 14] PYCURL ERROR\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"Fedoraproject.org has downed.","src":"\/wordpress\/wp-content\/uploads\/2010\/01\/Fedora-Down-300x217.png","width":350,"height":200},"classes":[]},{"id":1521,"url":"https:\/\/icesquare.com\/wordpress\/what-os-is-good-for-sparc64\/","url_meta":{"origin":1469,"position":2},"title":"What OS is good for SPARC64?","author":"Derrick","date":"September 13, 2011","format":false,"excerpt":"Recently, I received a SPARC64 machine (Sun Blade 100) as a gift. If you are not sure what is SPARC64, it is a CPU primary manufactured by Sun\/Oracle. It is quite different than Intel x86 \/ AMD 64, so anything that is compiled to run on these two platforms will\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"\/wordpress\/wp-content\/uploads\/2011\/09\/sparc.jpg","width":350,"height":200},"classes":[]},{"id":896,"url":"https:\/\/icesquare.com\/wordpress\/finally-ubuntu-uses-a-more-updated-linux-kernel-than-fedora\/","url_meta":{"origin":1469,"position":3},"title":"Finally, Ubuntu uses a more updated Linux kernel than Fedora","author":"Derrick","date":"October 11, 2010","format":false,"excerpt":"Historically, Ubuntu focuses on the user experience such as beautiful graphical user interface, while Fedora focuses on performance. In the other words, the kernel in Fedora distribution is more up-to-dated. I just upgraded by Ubuntu 10.04 to 10.10 (released on October 10, 2010), I found that the Linux Kernel in\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":686,"url":"https:\/\/icesquare.com\/wordpress\/ubuntu-10-04-cant-boot-cant-install-solved\/","url_meta":{"origin":1469,"position":4},"title":"Ubuntu 10.04 &#8211; Can&#8217;t boot \/ Can&#8217;t install &#8211; Solved","author":"Derrick","date":"May 3, 2010","format":false,"excerpt":"Since Ubuntu 10.04 is out officially, I like to give it a try on my media server. FYI, here is the specification of my media server: Athlon 64 X2 4600 Chipset: GeForce 6150 LE Motherboard: Asus A8M2N-LA Harddrive format: IDE Note that this is a 2006 model and the system\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1927,"url":"https:\/\/icesquare.com\/wordpress\/phphow-to-get-the-number-of-cpu-cores-in-fedora-ubuntu-and-freebsd\/","url_meta":{"origin":1469,"position":5},"title":"[PHP]How to get the number of CPU cores in Fedora, Ubuntu, and FreeBSD","author":"Derrick","date":"December 2, 2011","format":false,"excerpt":"I am working on a PHP application which needs to be deploy to multiple places. One of the variables is the number of CPU core. Since each server has different number of CPU cores, I need to specify the number of CPU core in my application for each server. I\u2026","rel":"","context":"In &quot;Computer Problems&quot;","block_context":{"text":"Computer Problems","link":"https:\/\/icesquare.com\/wordpress\/category\/technology\/computer-problems-computer-help-pc-support\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1469"}],"version-history":[{"count":11,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1469\/revisions"}],"predecessor-version":[{"id":2874,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/posts\/1469\/revisions\/2874"}],"wp:attachment":[{"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icesquare.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}