https://github.com/miguelnto/sah
Simple AUR Helper written in BASH
https://github.com/miguelnto/sah
arch-linux artix-linux aur aur-helper bash pacman shell-script
Last synced: 3 months ago
JSON representation
Simple AUR Helper written in BASH
- Host: GitHub
- URL: https://github.com/miguelnto/sah
- Owner: miguelnto
- Created: 2024-10-28T18:22:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-12-07T04:26:19.000Z (6 months ago)
- Last Synced: 2025-02-02T07:28:41.620Z (5 months ago)
- Topics: arch-linux, artix-linux, aur, aur-helper, bash, pacman, shell-script
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sah - Simple AUR Helper
Sah is a bash script that aids with the process of searching, installing, and updating AUR packages. It is **not** a package manager, it's an AUR helper, like yay.
AUR Packages are user produced content, so use the provided files at your own risk. Sah does not allow running as root.
It follows the package build process described [here](https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages) and [here](https://wiki.archlinux.org/index.php/Makepkg).
By default, the build directory for packages installed with `sah` is located at `$HOME/.cache/sah/builds`.
## Features
- Minimal dependencies.
- Fast update checking.
- Search for packages matching a query.
- Optionally view and confirm the PKGBUILD for each package.
- Handles dependency chains including other AUR packages.
- Import and locally trust PGP keys required for signed AUR packages.## Dependencies
- Bash
- Curl
- Git
- Sudo/doas/su## Installation
Install **sah** by running: *(as root)*
```
make install
```To uninstall, run: *(as root)*
```
make uninstall
```## Usage
Operations:
- `-i` - Install packages.
- `-u` - Update packages.
- `-s` - Search for packages.
- `-v` - Prints the current version.Options:
- `-a` - Only perform operations on AUR packages.
- `-n` - Skip viewing PKGBUILD files when installing from the AUR.
- `-N` - Skip confirmation prompts, also passed to pacman and makepkg.Examples:
- Install packages from the AUR and official repos in one command:
```
sah -i pfetch git
```- Update AUR packages only and skip confirm dialogs:
```
sah -uaN
```## TODO
- Fix some stuff that shellcheck is complaining about.
## Credits
Sah is a fork of [baph](https://bitbucket.org/natemaia/baph). As that didn't seem hugely maintained and the quality of the code could be improved, I decided to create this fork.