Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,26 @@ Also accepts: `SRCINFO` and `info`

### Inspect & Install & Remove Packages

`inspect`, `install`, `fetch`, and `remove` accept one or more packages (`grimoire install a b c`).
`inspect`, `fetch`, `build`, `install`and `remove` accept one or more packages (`grimoire install a b c`).

- `grimoire inspect <package>` shows description + all deps (make/check/optional)
- `grimoire fetch <package>` clones it to your `--dest-root`
- `grimoire build <package>` build with `makepkg`
- `grimoire install <package>` clones the repo, resolves dependencies, builds
- Pass `--noconfirm` to skip prompts (install, update, remove, and search)
- Pass `--noconfirm` to skip prompts
- Pass `--use-ssh` use SSH instead of HTTPS
- Pass `--submod` (install/fetch) to init the repo's git submodules after checkout.
- `grimoire remove <package>` to uninstall from pacman
- `grimoire clean` drops the search result cache (and completion cache)
- `grimoire clean <package>` removes just that package's clone (leaves the install)
- `grimoire clean <package>` removes just clone
- Pass `--clones` to remove every cloned package build tree

### Build from other sources

With no `--repo`, sources are tried in `repos.ini` order (top first); the first that has
the package wins, the rest are fallbacks. `repos.ini` is auto-seeded to `[ARCH]` official Gitlab.
Point at anything else that ships a `PKGBUILD` with `--repo-url`/`--repo` on
`install`, `fetch`, `inspect`, `search`, and `update`:
the package wins, the rest are fallbacks.

Point at anything else that ships a `PKGBUILD` with `--repo-url`/`--repo`
- `--repo-url <url>` builds from a git URL (scheme optional: `provider.ext/u/r` works).
- `--rev <branch|tag|commit>` / `--subdir <dir>` pick a revision, or a package nested in a monorepo
- `repo --add <url> <name>` saves an alias; use it with `--repo <name>`.
Expand All @@ -66,14 +68,10 @@ Point at anything else that ships a `PKGBUILD` with `--repo-url`/`--repo` on
grimoire install <pkg>
```
A bare `search <term>` queries **every** section in `repos.ini` and merges the results.
`--repo <name>` searches only this specific repo and precedes the `.conf`.

See [`repos.ini`](./repos.ini) for examples.

Section order is precedence: `install`/`fetch`/`inspect`/`update` walk sections top to
bottom and build from the first that has the package.

On first use, **auto-creates** `~/.config/grimoire/repos.ini` with `[ARCH]` as the default.
You can generate it with `grimoire -v`, **auto-creates** `~/.config/grimoire/repos.ini` with `[ARCH]` as the default.

### Stay Updated

Expand Down
Loading
Loading