"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[10],{9689:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>o,frontMatter:()=>l,metadata:()=>a,toc:()=>t});const a=JSON.parse('{"id":"user-guide/snigdha-os-and-aur","title":"Installing with AUR","description":"\ud83c\udf1f Installing Packages with an AUR Helper on Snigdha OS","source":"@site/docs/user-guide/snigdha-os-and-aur.md","sourceDirName":"user-guide","slug":"/user-guide/snigdha-os-and-aur","permalink":"/documentation/uk/user-guide/snigdha-os-and-aur","draft":false,"unlisted":false,"editUrl":"https://github.com/Snigdha-OS/documentation/tree/master/docs/user-guide/snigdha-os-and-aur.md","tags":[],"version":"current","lastUpdatedAt":1735540368000,"sidebarPosition":3,"frontMatter":{"sidebar_position":3},"sidebar":"tutorialSidebar","previous":{"title":"Shortcut for Developers","permalink":"/documentation/uk/user-guide/snigdha-os-command-shorcuts"},"next":{"title":"Chaotic AUR","permalink":"/documentation/uk/user-guide/snigdha-os-and-chaotic-aur"}}');var r=s(6070),i=s(6599);const l={sidebar_position:3},d="Installing with AUR",c={},t=[{value:"\ud83c\udf1f Installing Packages with an AUR Helper on Snigdha OS",id:"-installing-packages-with-an-aur-helper-on-snigdha-os",level:3},{value:"\ud83d\udd27 Step 1: Install an AUR Helper",id:"-step-1-install-an-aur-helper",level:3},{value:"Popular AUR Helpers",id:"popular-aur-helpers",level:4},{value:"\ud83c\udf1f Step 2: Search and Install AUR Packages",id:"-step-2-search-and-install-aur-packages",level:3},{value:"Basic Commands",id:"basic-commands",level:4},{value:"\ud83c\udf10 Step 3: Example Installations",id:"-step-3-example-installations",level:3},{value:"\u26a0\ufe0f Tips and Precautions",id:"\ufe0f-tips-and-precautions",level:3},{value:"\ud83d\ude80 Conclusion",id:"-conclusion",level:3}];function h(e){const n={br:"br",code:"code",h1:"h1",h3:"h3",h4:"h4",header:"header",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"installing-with-aur",children:"Installing with AUR"})}),"\n",(0,r.jsxs)(n.h3,{id:"-installing-packages-with-an-aur-helper-on-snigdha-os",children:["\ud83c\udf1f ",(0,r.jsx)(n.strong,{children:"Installing Packages with an AUR Helper on Snigdha OS"})]}),"\n",(0,r.jsxs)(n.p,{children:["Snigdha OS is known for its powerful ",(0,r.jsx)(n.strong,{children:"Arch User Repository (AUR)"}),", which provides access to user-contributed packages that are not included in the official repositories. To simplify the process of building and installing packages from the AUR, many users rely on ",(0,r.jsx)(n.strong,{children:"AUR helpers"})," like ",(0,r.jsx)(n.code,{children:"yay"}),", ",(0,r.jsx)(n.code,{children:"paru"}),", or ",(0,r.jsx)(n.code,{children:"trizen"}),"."]}),"\n",(0,r.jsxs)(n.h3,{id:"-step-1-install-an-aur-helper",children:["\ud83d\udd27 ",(0,r.jsx)(n.strong,{children:"Step 1: Install an AUR Helper"})]}),"\n",(0,r.jsx)(n.h4,{id:"popular-aur-helpers",children:(0,r.jsx)(n.strong,{children:"Popular AUR Helpers"})}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Yay (Yet Another Yaourt)"}),(0,r.jsx)(n.br,{}),"\n","Lightweight and popular among Arch users."]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["Install:","\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"sudo pacman -S --needed git base-devel\ngit clone https://aur.archlinux.org/yay.git\ncd yay\nmakepkg -si\n"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Paru"}),(0,r.jsx)(n.br,{}),"\n","A modern AUR helper written in Rust, which offers fast operations and is actively maintained."]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["Install:","\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"sudo pacman -S --needed git base-devel\ngit clone https://aur.archlinux.org/paru.git\ncd paru\nmakepkg -si\n"})}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Trizen"}),(0,r.jsx)(n.br,{}),"\n","Another reliable AUR helper that integrates with pacman and supports clean builds."]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["Install:","\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"sudo pacman -S --needed git base-devel\ngit clone https://aur.archlinux.org/trizen.git\ncd trizen\nmakepkg -si\n"})}),"\n"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.h3,{id:"-step-2-search-and-install-aur-packages",children:["\ud83c\udf1f ",(0,r.jsx)(n.strong,{children:"Step 2: Search and Install AUR Packages"})]}),"\n",(0,r.jsx)(n.p,{children:"Once your AUR helper is installed, you can easily search for and install AUR packages."}),"\n",(0,r.jsx)(n.h4,{id:"basic-commands",children:(0,r.jsx)(n.strong,{children:"Basic Commands"})}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{children:(0,r.jsx)(n.strong,{children:"Command"})}),(0,r.jsx)(n.th,{children:(0,r.jsx)(n.strong,{children:"Description"})})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"yay -S package-name"})}),(0,r.jsx)(n.td,{children:"Install a package from AUR."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"paru -S package-name"})}),(0,r.jsx)(n.td,{children:"Install a package from AUR."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"trizen -S package-name"})}),(0,r.jsx)(n.td,{children:"Install a package from AUR."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"yay -Ss package-name"})}),(0,r.jsx)(n.td,{children:"Search for a package in AUR."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"paru -Ss package-name"})}),(0,r.jsx)(n.td,{children:"Search for a package in AUR."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"trizen -Ss package-name"})}),(0,r.jsx)(n.td,{children:"Search for a package in AUR."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"yay -Syu"})}),(0,r.jsx)(n.td,{children:"Update all installed packages (including AUR)."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"paru -Syu"})}),(0,r.jsx)(n.td,{children:"Update all installed packages (including AUR)."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"trizen -Syu"})}),(0,r.jsx)(n.td,{children:"Update all installed packages (including AUR)."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"yay -R package-name"})}),(0,r.jsx)(n.td,{children:"Remove a package."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"paru -R package-name"})}),(0,r.jsx)(n.td,{children:"Remove a package."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{children:(0,r.jsx)(n.code,{children:"trizen -R package-name"})}),(0,r.jsx)(n.td,{children:"Remove a package."})]})]})]}),"\n",(0,r.jsxs)(n.h3,{id:"-step-3-example-installations",children:["\ud83c\udf10 ",(0,r.jsx)(n.strong,{children:"Step 3: Example Installations"})]}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsxs)(n.strong,{children:["Install ",(0,r.jsx)(n.code,{children:"visual-studio-code-bin"})," (AUR package)"]}),":"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"yay -S visual-studio-code-bin\n"})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Search for a package (e.g., Brave Browser)"}),":"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"paru -Ss brave\n"})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Update All Packages"}),":"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"yay -Syu\n"})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Remove a Package (e.g., Discord)"}),":"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"paru -R discord\n"})}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.h3,{id:"\ufe0f-tips-and-precautions",children:["\u26a0\ufe0f ",(0,r.jsx)(n.strong,{children:"Tips and Precautions"})]}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Enable Parallel Builds"}),": Speed up builds by editing ",(0,r.jsx)(n.code,{children:"/etc/makepkg.conf"})," and setting:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'MAKEFLAGS="-j$(nproc)"\n'})}),"\n",(0,r.jsx)(n.p,{children:"This uses all available CPU cores for compiling."}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Check PKGBUILDs"}),": Always review the ",(0,r.jsx)(n.strong,{children:"PKGBUILD"})," file for security before installing a package:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"yay -G package-name\ncd package-name\ncat PKGBUILD\n"})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Use Trusted Helpers"}),": Stick to widely-used and actively maintained AUR helpers to minimize risks."]}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Update Regularly"}),": Keep your system updated, as outdated packages can lead to dependency issues:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"yay -Syu\n"})}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsxs)(n.h3,{id:"-conclusion",children:["\ud83d\ude80 ",(0,r.jsx)(n.strong,{children:"Conclusion"})]}),"\n",(0,r.jsxs)(n.p,{children:["Using an AUR helper like ",(0,r.jsx)(n.code,{children:"yay"}),", ",(0,r.jsx)(n.code,{children:"paru"}),", or ",(0,r.jsx)(n.code,{children:"trizen"})," streamlines the process of installing and managing AUR packages, making Snigdha OS even more powerful and user-friendly. Happy exploring! \ud83d\ude04"]})]})}function o(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},6599:(e,n,s)=>{s.d(n,{R:()=>l,x:()=>d});var a=s(758);const r={},i=a.createContext(r);function l(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:l(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]);