Skip to content

Commit

Permalink
Clarify removal of local packages
Browse files Browse the repository at this point in the history
Add detail to the steps for clearing packages from the local repository.
  • Loading branch information
TraceyC77 authored and Tracey Clark committed Nov 10, 2024
1 parent 1a28d42 commit 2350c81
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/packaging/advanced-config/local-repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ Every time you run `go-task build-local`, all `.eopkg` files in the local reposi

There are some important things to know when working with local repositories, as they may lead to issues later on.

- `solbuild` will use your version of a package from the local repository regardless of whether there's a higher release in the Solus repository. Therefore you should only use `go-task build-local` when required and also remove old packages from the local repository when they are no longer needed.
- If the package is already installed in the `solbuild` image, the release must be higher for it to be installed.
- `solbuild` will use your version of a package from the local repository regardless of whether there's a higher release in the Solus repository. Therefore:
- Only use `go-task build-local` when required
- Remove old packages from the local repository when they are no longer needed, and rebuild its index with the following commands
```bash
cd /var/lib/solbuild/local
sudo rm *.eopkg
sudo eopkg index --skip-signing /var/lib/solbuild/local/ --output /var/lib/solbuild/local/eopkg-index.xml
```
- If a package is already installed in the `solbuild` image, the release must be higher for it to be installed.

## Installing packages from the local repository index

Expand Down

0 comments on commit 2350c81

Please sign in to comment.