An open API service indexing awesome lists of open source software.

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

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.