[Repo:28], [Repo Make:46], and [Aur Make:1]<\/code>. Their meanings are:<\/p>\n\n\n\n[Repo:28]<\/strong> means 28 dependencies from the official repositories.[Repo Make:46]<\/strong> means 46 make dependencies from the official repositories. These make dependencies are used only once and that is for building the app. Later Yay gives you options to remove them after the building process is over.[Aur Make:1]<\/strong> means 1 make dependency from the AUR, again only for building the app and Yay asks you to remove them later.<\/p>\n\n\n\nStep 3: decide whether to clean build or not<\/h3>\n\n\n\n If you are installing the package for the first time, yay will not ask this question. Otherwise, yay will ask you “Packages to cleanBuild?<\/code>“. This means whether you want to install the package completely fresh or not. Ans A<\/code> for Yes:<\/p>\n\n\n\n==> Packages to cleanBuild?\n==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)\n==> A<\/code><\/pre>\n\n\n\nAs you can see from the following output, choosing A<\/code> deletes the old caches ~\/.cache\/yay\/aur-package<\/code> directory recursively and then downloads new.<\/p>\n\n\n\n:: Deleting (1\/1): \/home\/ajay\/.cache\/yay\/google-chrome\n:: (1\/1) Downloaded PKGBUILD: google-chrome<\/code><\/pre>\n\n\n\nStep 4: check the PKGBUILD file and install the package<\/h3>\n\n\n\n Now, yay will ask you to show the Diffs<\/code>. It is the difference between the new and old PKGBUILDs. If you are installing the package for the first time or completely fresh, it will be the whole PKGBUILD. On the second and third times, you will see only the changed part. Always say yes i.e. A<\/code>. <\/p>\n\n\n\n==> Diffs to show?\n==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)\n==> A<\/code><\/pre>\n\n\n\nNow, Verify the source<\/code> and shasum<\/code> in PKGBUILDs as foretold. Now, follow your intuition and you are done.<\/p>\n\n\n\n\ud83d\udcd3Note 1: <\/strong>Similarly, to install Spotify using yay<\/strong>, just search for it using yay spotify<\/code> and then select no. 3<\/code> for aur\/spotify<\/code> (as of 11 March 2022), then cleanbuild -> see the diffs -> allow the installation by pressing y<\/code>.<\/p>\n\n\n\n\ud83d\udcd3 Note 2<\/strong>: You can also couple fzf<\/code> with yay to automate the AUR even further using the following command:<\/p>\n\n\n\nyay -Slq | fzf --preview-window=80% --preview 'cat <(yay -Si {1}) <(yay --getpkgbuild --print {1})' | xargs --no-run-if-empty --open-tty yay -S<\/code><\/pre>\n\n\n\nFig: using fzf and yay to search in a smart way in AUR in Arch Linux<\/figcaption><\/figure>\n\n\n\nNow, You can scroll up and down in the preview window to see the PKGBUILDs or hit enter on the chosen package to install that. One more thing to note is that the above fzf list includes “official packages” as well \ud83d\ude00. <\/p>\n\n\n\n
Upgrade AUR and official Arch packages together by just yay<\/h2>\n\n\n\n To upgrade all packages together, use the command:<\/p>\n\n\n\n
~$ yay -Syu --combinedupgrade --devel<\/code><\/pre>\n\n\n\nHere, because of yay’s flag --combinedupgrade<\/code>, you will see a combined list of official and AUR packages that will be upgraded instead of just the official ones. Then yay will show you only the difference between the new PKGBUILDs and old PKGBUILDs. After reviewing the PKGBUILDs, the upgrade will start.<\/p>\n\n\n\nAnd, the flag --devel<\/code> tells yay to upgrade the developmental packages such as *-git<\/code> as well.<\/p>\n\n\n\nOutput (after removing unimportant lines):<\/p>\n\n\n\n
core is up to date\n extra is up to date\n community is up to date\n multilib is up to date\n:: Searching databases for updates...\n:: Searching AUR for updates...\n:: Checking development packages...\n -> Flagged Out Of Date AUR Packages: python-stringcase\n:: 78 Packages to upgrade.\n78 core\/ca-certificates-mozilla 3.75-1 -> 3.76-1\n77 core\/curl 7.81.0-2 -> 7.81.0-3\n76 core\/dbus 1.12.20-1 -> 1.14.0-1\n...\n...\n38 community\/bat 0.19.0-2 -> 0.20.0-1\n37 community\/dunst 1.8.0-1 -> 1.8.1-1\n...\n...\n...\n 1 aur\/google-chrome 98.0.4758.102-1 -> 99.0.4844.51-1\n==> Packages to exclude: (eg: \"1 2 3\", \"1-3\", \"^4\" or repo name)\n==>\n<\/code><\/pre>\n\n\n\nJust hit Enter key to update all packages, or enter some number as suggested in the output to exclude corresponding packages.<\/p>\n\n\n\n
\ud83d\udcd3Note: <\/strong> If you recall, I had installed yay manually. Because of this manual method, the list in the --combined upgrade<\/code> will not include yay itself. To include it, I recommend you “reinstall” yay using the yay itself<\/strong>. It will replace the existing yay binaries. At the same time, it will also create a directory ~\/.cache\/yay\/yay<\/code>. So, now yay will be able to compare its old and new versions and include itself in the combined list.<\/p>\n\n\n\nColor and other configurations in yay using pacman.conf<\/h2>\n\n\n\n yay reads pacman’s configuration file \/etc\/pacman.conf<\/code>. To get colored yay output on your terminal (TTY), uncomment\/include the color<\/code> line in the [options]<\/code> segment:<\/p>\n\n\n\n[options]\n\u2026\nColor\n\u2026<\/code><\/pre>\n\n\n\nOther useful options<\/code> are:<\/p>\n\n\n\n\nVerbosePkgLists<\/code> – columnwise output of name, size, and version as you can see in the following figure.<\/li>\n\n\n\nCheckSpace<\/code> – pacman checks if your storage device has enough space before the installation.<\/li>\n\n\n\nParallelDownloads = 5<\/code> means 5 packages are downloaded at once instead of the default 1 package.<\/li>\n<\/ul>\n\n\n\nFig: yay’s output in color<\/figcaption><\/figure>\n\n\n\nConclusion<\/h2>\n\n\n\n Thanks for reading this article. If you find any inadvertent errors or you have any confusion please let me know using the comment section given below.<\/p>\n","protected":false},"excerpt":{"rendered":"
It’s about installing any package from AUR (Arch User Repository) manually or using Yay with the example of Google Chrome and Spotify.<\/p>\n","protected":false},"author":2,"featured_media":1993,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[36,18],"class_list":["post-1965","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-command-line-tools","tag-arch-linux","tag-command-line-tools"],"yoast_head":"\n
AUR (Arch User Repository) and Yay in Arch Linux | SmartTech101<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n\t \n\t \n\t \n