{"id":767,"date":"2023-04-25T22:47:56","date_gmt":"2023-04-26T01:47:56","guid":{"rendered":"https:\/\/freeshell.de\/~felipe\/blog\/?p=767"},"modified":"2024-06-09T15:44:35","modified_gmt":"2024-06-09T18:44:35","slug":"apply-a-system-update-on-arch-linux","status":"publish","type":"post","link":"https:\/\/freeshell.de\/~felipe\/blog\/04\/2023\/linux\/apply-a-system-update-on-arch-linux\/","title":{"rendered":"Apply a system update on Arch Linux"},"content":{"rendered":"\n<p>To initiate an update of all installed packages, open any terminal application and pass the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman -Syu\n<\/code><\/pre>\n\n\n\n<p>You will be prompted for your password before the command can continue. This command checks for updates. If there are any, it will list the packages, along with their new version numbers.<\/p>\n\n\n\n<p>log in to &#8220;sudo pacman -Syu&#8221; in a terminal<\/p>\n\n\n\n<p>You will then be asked to confirm that you want to apply a full update. Boy y and press Enter to confirm, or use n cancel.<\/p>\n\n\n\n<p>Type y and press Enter to confirm the update<\/p>\n\n\n\n<p>If you have packages that you suspect are corrupted, you can force the database download with the update to fix these issues. Even if no updates are available, pacman will check the integrity of currently installed packages. Add a second y to the string to make it happen.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman -Syyu\n<\/code><\/pre>\n\n\n\n<p>How to update a specific package in Arch<\/p>\n\n\n\n<p>If you want to update only a package use the same command as you have to install it, replacing package_name with your choice.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pacman -S package_nam<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Warning: It is not recommended to upgrade to specific packages often ignoring other available updates.<br \/>Due to Arch&#8217;s current release process, shortcut updates may cause issues.<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>If you are unsure of a package name, you can search for installed packages with the -Qs flag.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pacman -Qs string<\/code><\/pre>\n\n\n\n<p>Be sure to replace the string with your term<br \/>This will search for both names and package names, so you should easily find what you&#8217;re looking for.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To initiate an update of all installed packages, open any terminal application and pass the following command: You will be prompted for your password before the command can continue. This command checks for updates. If there are any, it will list the packages, along with their new version numbers. log in to &#8220;sudo pacman -Syu&#8221; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,70],"tags":[66,67,79,77,78],"class_list":["post-767","post","type-post","status-publish","format-standard","hentry","category-arch","category-linux","tag-arch","tag-linux","tag-system","tag-update","tag-upgrade"],"_links":{"self":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/comments?post=767"}],"version-history":[{"count":1,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/767\/revisions"}],"predecessor-version":[{"id":768,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/767\/revisions\/768"}],"wp:attachment":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/categories?post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/tags?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}