3.3 KiB
sidebar_position
| sidebar_position |
|---|
| 2 |
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
Popular AUR Helpers
-
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
- Install:
-
Paru
A modern AUR helper written in Rust.- Install:
sudo pacman -S --needed git base-devel git clone https://aur.archlinux.org/paru.git cd paru makepkg -si
- Install:
-
Trizen
Another reliable AUR helper.- Install:
sudo pacman -S --needed git base-devel git clone https://aur.archlinux.org/trizen.git cd trizen makepkg -si
- Install:
🌟 Step 2: Search and Install AUR Packages
Once your AUR helper is installed, you can easily search for and install AUR packages.
Basic Commands
| Command | Description |
|---|---|
yay -S package-name |
Install a package from AUR. |
paru -S package-name |
Install a package from AUR. |
yay -Ss package-name |
Search for a package in AUR. |
paru -Ss package-name |
Search for a package in AUR. |
yay -Syu |
Update all installed packages (including AUR). |
paru -Syu |
Update all installed packages (including AUR). |
yay -R package-name |
Remove a package. |
paru -R package-name |
Remove a package. |
🌐 Step 3: Example Installations
-
Install
visual-studio-code-bin(AUR package):yay -S visual-studio-code-bin -
Search for a package (e.g., Brave Browser):
paru -Ss brave -
Update All Packages:
yay -Syu -
Remove a Package (e.g., Discord):
paru -R discord
⚠️ Tips and Precautions
-
Enable Parallel Builds: Speed up builds by editing
/etc/makepkg.confand setting:MAKEFLAGS="-j$(nproc)"This uses all available CPU cores for compiling.
-
Check PKGBUILDs: Always review the PKGBUILD file for security before installing a package:
yay -G package-name cd package-name cat PKGBUILD -
Use Trusted Helpers: Stick to widely-used and actively maintained AUR helpers to minimize risks.
-
Update Regularly: Keep your system updated, as outdated packages can lead to dependency issues:
yay -Syu
🚀 Conclusion
Using an AUR helper like yay or paru streamlines the process of installing and managing AUR packages, making Snigdha OS even more powerful and user-friendly. Happy exploring! 😄