{"id":25596,"date":"2024-02-29T14:05:17","date_gmt":"2024-02-29T14:05:17","guid":{"rendered":"https:\/\/linuxways.net\/?p=25596"},"modified":"2024-02-29T14:06:11","modified_gmt":"2024-02-29T14:06:11","slug":"update-arch-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/arch\/update-arch-linux\/","title":{"rendered":"How to Update Arch Linux"},"content":{"rendered":"<p>Keeping the Arch Linux up to date keeps it performing at its maximum capacity as with the passage of time the applications or software begin to have compatibility issues due to different bugs. Most of the time applications installed on Arch have a newer version released that does not work correctly with the old version of the operating system.<\/p>\n<p><strong>Outline: <\/strong><\/p>\n<ul>\n<li><a href=\"#post-25596-_arlv3q8gsivk\"><strong>How to Update Arch Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-25596-_2for7xh3f11r\"><strong>Through Pacman<\/strong><\/a><\/li>\n<li><a href=\"#post-25596-_r7rcpdp3cib7\"><strong>Through GUI<\/strong><\/a><\/li>\n<li><a href=\"#post-25596-_e4qeb2y45ib\"><strong>How to Update Arch Linux Keyring<\/strong><\/a><\/li>\n<li><a href=\"#post-25596-_4xfdb4gqa4s0\"><strong>How to Update a Specific Package on Arch Linux<\/strong><\/a><\/li>\n<li><a href=\"#post-25596-_bb1avs9998zf\"><strong>Conclusion<\/strong><\/a><\/li>\n<\/ul>\n<h2><a id=\"post-25596-_arlv3q8gsivk\"><\/a>How To Update Arch Linux<\/h2>\n<p>Like every other Linux distribution Arch Linux also has its default package manager named Pacman. So to update Arch there are two ways, one is by using its default package installer and the other is by checking software updates in the About tab:<\/p>\n<h3><a id=\"post-25596-_2for7xh3f11r\"><\/a><strong>Through Pacman<\/strong><\/h3>\n<p>To upgrade Arch Linux using the command line interface, you need to use the Pacman package manager. Pacman is a package manager for Arch Linux and has various options to install, update, remove, and query packages. The options are related to updating the system and the package database. The command to update all the installed packages is:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-Syu<\/span><\/div><\/div>\n<p>This will compare the local package database against the distribution\u2019s software repository and prompt you to confirm the upgrade. It synchronizes the package database and performs a full system upgrade. It is primarily the recommended method for keeping the Arch Linux system updated.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"390\" class=\"wp-image-25641\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-1.png 742w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-1-300x158.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>You can also force a database download with an extra y. This is similar to <em>pacman -Syu<\/em>, but it downloads the entire package database again. This can be useful if you have a corrupted or outdated database, or want to verify the integrity of your packages, but it is not required for normal updates:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-Syyu<\/span><\/div><\/div>\n<p>This will take longer and consume more network bandwidth, so it is not recommended to use it frequently.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"203\" class=\"wp-image-25644\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-2.png 744w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-2-300x82.png 300w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/p>\n<p>To synchronize the package database with the server, but to not upgrade any packages, the below given command is used. This is not recommended, as it can cause partial upgrades and break dependencies:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-Sy<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"195\" class=\"wp-image-25647\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-3.png 747w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-3-300x78.png 300w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/p>\n<p>To force a refresh of the package database, even if it is up-to-date the below given command for update can be used. This is usually unnecessary unless you have problems with your mirror or switch to a different one:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-Syy<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"226\" class=\"wp-image-25648\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-4.png 744w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-4-300x91.png 300w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/p>\n<p>To synchronize the package database and perform a full system upgrade, including downgrading packages if needed:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-Syuu<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"196\" class=\"wp-image-25651\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-5.png 740w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-5-300x79.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p>This is useful when you switch from a testing repository to a stable one, or vice versa. This command for updating Arch should be used with care, as executing it might cause unexpected changes in your system.<\/p>\n<h3><a id=\"post-25596-_r7rcpdp3cib7\"><\/a><strong>Through GUI <\/strong><\/h3>\n<p>Another way to update Arch Linux is by checking for software updates, for that navigate to system settings and from there go to the Arch Linux About option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"752\" height=\"579\" class=\"wp-image-25655\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-6.png 752w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-6-300x231.png 300w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/p>\n<p>In the Software Updates tab, click on the refresh icon and the system will look for any available updates if there are any then download and install them:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"819\" height=\"574\" class=\"wp-image-25656\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-7.png 819w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-7-300x210.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-7-768x538.png 768w\" sizes=\"auto, (max-width: 819px) 100vw, 819px\" \/><\/p>\n<h2><a id=\"post-25596-_e4qeb2y45ib\"><\/a><strong>How To Update Arch Linux Keyring <\/strong><\/h2>\n<p>In Arch Linux, the keyring serves the purpose of authenticity of packages that are to be installed on Arch Linux. It ensures that the packages are installed from the official repositories. Keyring is primarily a collection of open PGP keys that are used to sign and verify the packages with Pacman. So to avoid any verification errors for the applications and to ensure that the packages are from official repositories, the keyring should be updated periodically:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-Sy<\/span> archlinux-keyring<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"281\" class=\"wp-image-25659\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-8.png 748w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-8-300x113.png 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/p>\n<p>Once the keyring is updated, then refresh the keys as it updates all the key databases with the update downloaded in the previous command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman-key <span class=\"re5\">--refresh-keys<\/span><\/div><\/div>\n<h2><a id=\"post-25596-_t977p4a7qrow\"><\/a><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"254\" class=\"wp-image-25661\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-9.png 745w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-9-300x102.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/h2>\n<h2><a id=\"post-25596-_4xfdb4gqa4s0\"><\/a><strong>How To Update a Specific Package on Arch Linux<\/strong><\/h2>\n<p>Usually through Pacman, only the update regarding the operating system is carried out, however, it is necessary to update the package or applications installed on Arch should be updated. So to update any software or application on Arch execute the <em>pacman<\/em> command with the s flag along with the application name:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-S<\/span> <span class=\"sy0\">&lt;<\/span>package-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"457\" class=\"wp-image-25665\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-10.png 747w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-10-300x184.png 300w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/p>\n<p>Further to see the information regarding any package on Arch Linux use the Q flag for query and s flag for search, below is its syntax:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"kw2\">sudo<\/span> pacman <span class=\"re5\">-Qs<\/span> <span class=\"sy0\">&lt;<\/span> package-name<span class=\"sy0\">&gt;<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"167\" class=\"wp-image-25667\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-11.png 742w, https:\/\/linuxways.net\/wp-content\/uploads\/2024\/02\/word-image-25596-11-300x68.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/p>\n<h2><a id=\"post-25596-_bb1avs9998zf\"><\/a><strong>Conclusion <\/strong><\/h2>\n<p>To ensure the smooth functionality of Arch Linux it is imperative to keep it updated and for that, you need to check for updates periodically. To check for Updates on Arch either use the Pacman package installer or check for software updates in the About section of system settings. To keep Arch updated it is necessary to update the Arch Linux keyring as it contains the data for keys to validate the installed applications.<\/p>","protected":false},"excerpt":{"rendered":"<p>To check for Updates on Arch either use the Pacman package installer or check for software updates in the About section of the system settings<\/p>","protected":false},"author":113,"featured_media":25815,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1055],"tags":[],"class_list":["post-25596","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arch"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/25596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/113"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=25596"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/25596\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/25815"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=25596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=25596"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=25596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}