เจฎเฉเฉฑเจ– เจธเจฎเฉฑเจ—เจฐเฉ€ เจจเฉ‚เฉฐ เจ›เฉฑเจกเฉ‹

Installing with AUR

๐ŸŒŸ Installing Packages with an AUR Helper on Snigdha OSโ€‹

Snigdha OS is known for its powerful 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 AUR helpers like yay, paru, or trizen.

๐Ÿ”ง Step 1: Install an AUR Helperโ€‹

  1. Yay (Yet Another Yaourt)
    Lightweight and popular among Arch users.

    • Install:
      sudo pacman -S --needed git base-devel
      git clone https://aur.archlinux.org/yay.git
      cd yay
      makepkg -si
  2. Paru
    A modern AUR helper written in Rust, which offers fast operations and is actively maintained.

    • Install:
      sudo pacman -S --needed git base-devel
      git clone https://aur.archlinux.org/paru.git
      cd paru
      makepkg -si
  3. Trizen
    Another reliable AUR helper that integrates with pacman and supports clean builds.

    • Install:
      sudo pacman -S --needed git base-devel
      git clone https://aur.archlinux.org/trizen.git
      cd trizen
      makepkg -si

๐ŸŒŸ Step 2: Search and Install AUR Packagesโ€‹

Once your AUR helper is installed, you can easily search for and install AUR packages.

Basic Commandsโ€‹

CommandDescription
yay -S package-nameInstall a package from AUR.
paru -S package-nameInstall a package from AUR.
trizen -S package-nameInstall a package from AUR.
yay -Ss package-nameSearch for a package in AUR.
paru -Ss package-nameSearch for a package in AUR.
trizen -Ss package-nameSearch for a package in AUR.
yay -SyuUpdate all installed packages (including AUR).
paru -SyuUpdate all installed packages (including AUR).
trizen -SyuUpdate all installed packages (including AUR).
yay -R package-nameRemove a package.
paru -R package-nameRemove a package.
trizen -R package-nameRemove a package.

๐ŸŒ Step 3: Example Installationsโ€‹

  1. Install visual-studio-code-bin (AUR package):

    yay -S visual-studio-code-bin
  2. Search for a package (e.g., Brave Browser):

    paru -Ss brave
  3. Update All Packages:

    yay -Syu
  4. Remove a Package (e.g., Discord):

    paru -R discord

โš ๏ธ Tips and Precautionsโ€‹

  1. Enable Parallel Builds: Speed up builds by editing /etc/makepkg.conf and setting:

    MAKEFLAGS="-j$(nproc)"

    This uses all available CPU cores for compiling.

  2. Check PKGBUILDs: Always review the PKGBUILD file for security before installing a package:

    yay -G package-name
    cd package-name
    cat PKGBUILD
  3. Use Trusted Helpers: Stick to widely-used and actively maintained AUR helpers to minimize risks.

  4. Update Regularly: Keep your system updated, as outdated packages can lead to dependency issues:

    yay -Syu

๐Ÿš€ Conclusionโ€‹

Using an AUR helper like yay, paru, or trizen streamlines the process of installing and managing AUR packages, making Snigdha OS even more powerful and user-friendly. Happy exploring! ๐Ÿ˜„