{"id":339,"date":"2023-02-10T08:07:52","date_gmt":"2023-02-10T08:07:52","guid":{"rendered":"https:\/\/www.dedicatedcore.com\/blog\/?p=339"},"modified":"2025-05-30T08:12:35","modified_gmt":"2025-05-30T08:12:35","slug":"install-yay-helper-archlinux","status":"publish","type":"post","link":"https:\/\/www.dedicatedcore.com\/blog\/install-yay-helper-archlinux\/","title":{"rendered":"How to Install Yay Helper on ArchLinux"},"content":{"rendered":"<p>Aurman (also known as AUR) and Yaourt are the two primary assistants included with ArchLinux. However, Yay (Yet Another Yoghurt) has replaced both, and both have been deprecated and discontinued. Yay is an Aur utility created with minimal user input and minimal dependencies using the Go programming language. One wants to <a href=\"https:\/\/www.dedicatedcore.com\/blog\/extract-unzip-tar-gz-file-linux-command\/\" target=\"_blank\" rel=\"noopener\">access compressed data<\/a> of archived files by unzipping or extracting tar.gz Files.<\/p>\n<p>It performs as well as Pacman and features interactive search and installation. You can download PKGBUILDs from AUR or ABS, TAB complete, and find matching package suppliers while conducting a search operation. You will discover how to install Yay helper on ArchLinux in this little article.<\/p>\n<h2>Detailed Steps for Installing Yay Helper in Arch Linux<\/h2>\n<h3>Step 1: Log in to the ArchLinux Instance<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo pacman -Syy<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-340\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/update-archlinux-running-command.png\" alt=\"update system package by running command\" width=\"800\" height=\"222\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/update-archlinux-running-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/update-archlinux-running-command-300x83.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/update-archlinux-running-command-150x42.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/update-archlinux-running-command-768x213.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/update-archlinux-running-command-100x28.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/update-archlinux-running-command-700x194.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>The base-devel package, which contains all the tools needed for building or compiling, should then be installed.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo pacman -S --needed base-devel<\/pre>\n<h3>Step 2: Install Git by Executing the Following Command.<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo pacman -S git<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-341\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-running-command.png\" alt=\"install git by running the command\" width=\"800\" height=\"345\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-running-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-running-command-300x129.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-running-command-150x65.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-running-command-768x331.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-running-command-100x43.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-running-command-700x302.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<h3>Step 3: Clone the yay git Repository:<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo git clone https:\/\/aur.archlinux.org\/yay.git<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-342\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-repository-using-command.png\" alt=\"install git repository after installing git\" width=\"800\" height=\"258\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-repository-using-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-repository-using-command-300x97.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-repository-using-command-150x48.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-repository-using-command-768x248.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-repository-using-command-100x32.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-git-repository-using-command-700x226.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>You will discover the &#8216;yay&#8217; directory in your current working directory once the cloning is finished. To find, simply use the ls command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ ls<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-343\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-yay-directory-ls-command.png\" alt=\"finding yay directory using ls command\" width=\"800\" height=\"258\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-yay-directory-ls-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-yay-directory-ls-command-300x97.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-yay-directory-ls-command-150x48.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-yay-directory-ls-command-768x248.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-yay-directory-ls-command-100x32.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-yay-directory-ls-command-700x226.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>The &#8216;yay&#8217; directory is owned by the root user, as can be seen by using the ls -l command. Ownership must be transferred to the default sudo user, in this example, dedicatedcore:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ sudo chown -R dedicatedcore :users yay<\/pre>\n<p>Run the ls -l command once again to validate.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-344\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-ls-command-change-ownership.png\" alt=\"change file permission by using ls -l command\" width=\"800\" height=\"259\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-ls-command-change-ownership.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-ls-command-change-ownership-300x97.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-ls-command-change-ownership-150x49.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-ls-command-change-ownership-768x249.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-ls-command-change-ownership-100x32.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/run-ls-command-change-ownership-700x227.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Now open the &#8216;yay&#8217; directory and perform a build from the source.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ cd yay\r\n\r\n$ makepkg -si<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-345\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-yay-helper.png\" alt=\"navigate into yay directory\" width=\"800\" height=\"504\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-yay-helper.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-yay-helper-300x189.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-yay-helper-150x95.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-yay-helper-768x484.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-yay-helper-100x63.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-yay-helper-700x441.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Since the installation will take some time, you can stand up and stretch or have a cup of coffee. Following installation, you can use the following command to determine the version of yay:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ yay --version<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-346\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-version.png\" alt=\"check yay version by running command\" width=\"800\" height=\"201\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-version.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-version-300x75.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-version-150x38.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-version-768x193.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-version-100x25.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-version-700x176.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Use the following syntax to install a package using yay:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ yay -S package<\/pre>\n<p>For illustration<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ yay - S nodejs<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-347\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-package-using-yay.png\" alt=\"use the syntax to install package using yay\" width=\"800\" height=\"464\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-package-using-yay.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-package-using-yay-300x174.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-package-using-yay-150x87.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-package-using-yay-768x445.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-package-using-yay-100x58.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/install-package-using-yay-700x406.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Run: to uninstall a package.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ yay -Rns package<\/pre>\n<p>Run: to update your system&#8217;s packages.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ yay -Syy<\/pre>\n<p>Run: to upgrade your system completely.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ yay -Syu<\/pre>\n<p>Run the following command to see the man pages to view other yay usage options:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">$ man yay<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-348\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-man-pages.png\" alt=\"check usage of yay run man page\" width=\"800\" height=\"568\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-man-pages.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-man-pages-300x213.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-man-pages-150x107.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-man-pages-768x545.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-man-pages-100x71.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/check-yay-man-pages-634x450.png 634w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>That is how you set up and utilize the Yay AUR helper, the current suggested package management for ArchLinux. This post was meant to be both instructive and helpful.<\/p>\n<h4>Wrapping Up about How To Install Yay Helper On ArchLinux<\/h4>\n<p>Finally, yay helper installation on Arch Linux is a simple procedure that enables you to manage packages from the Arch User Repository (AUR) with ease. You may easily install Yay and use its features to install and update packages that are unavailable in the official Arch Linux repositories by following the above-described methods. To <a href=\"https:\/\/www.dedicatedcore.com\/blog\/remove-directory-linux-with-rm-rmdir-commands\/\" target=\"_blank\" rel=\"noopener\">free up disk space<\/a> or organize a directory structure and ensure system stability, make sure to remove the directory in Linux.<\/p>\n<p>To maintain their dependability and security, it&#8217;s crucial to use caution while installing AUR packages and to carefully study package information and user reviews. With yay, you may access various software created by the community to improve your experience with Arch Linux.<\/p>\n<h3>Frequently Asked Questions (FAQ)<\/h3>\n<p><strong>1. Why does the Yay installation take a long time on Arch Linux?<\/strong><\/p>\n<p>The installation of Yay, under certain circumstances, can be a bit slow and tedious because the procedure involves first cloning a repository and then compiling the package from the source on your system, depending on its performance and the speed of your Internet connection. Downloading the needed dependencies and building the package can delay the process if your system has fewer CPU cores or your Internet speed is slow.<\/p>\n<p><strong>2. Do I need root access to install Yay?<\/strong><\/p>\n<p>Yes, you need root or sudo access to install Yay and its dependencies. It also helps to manage system-wide packages.<\/p>\n<p><strong>3. How do I then secure the Yay installation from the AUR?<\/strong><\/p>\n<p>To install Yay securely, always start by reviewing the PKGBUILD file derived from the AUR repository for any malicious content or unusual sources. Since AUR package maintenance is community-driven, it then becomes incumbent upon you to validate whether the upstream URL points to a correct site and that the script is genuinely the official one, to prevent any security issues from arising during installation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aurman (also known as AUR) and Yaourt are the two primary assistants included with ArchLinux. However, Yay (Yet Another Yoghurt) has replaced both, and both&#8230;<\/p>\n","protected":false},"author":1,"featured_media":446,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/339"}],"collection":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":14,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":2811,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/339\/revisions\/2811"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media\/446"}],"wp:attachment":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/categories?post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/tags?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}