updated readme

This commit is contained in:
Dan 2022-01-23 17:15:08 +13:00
parent 3ea48f55ad
commit 36bc28a70c
Signed by: dan
GPG Key ID: 57ABEF39C546B028
1 changed files with 5 additions and 10 deletions

View File

@ -1,5 +1,5 @@
# local-arch-repo
Running multiple Arch devices? Create your own package archive repository.
Running multiple Arch devices? Create your own package archive repository and simply add another device.
This is actually for a pinephone and other x86_64 Arch devices. Probably PIs (armv7l) will follow.
# Usage
@ -33,6 +33,7 @@ python -m http.server
### darkhttpd
```
pacman -S darkhttpd
sudo -u http darkhttpd /srv/http/repo/ --no-server-id
```
@ -42,18 +43,12 @@ Packages older than half a year will be deleted.
@monthly find /srv/http/repo/* -mtime +182.5 '!' -regex '*pkg*' -exec rm {} \;
```
## Server
## Server & client
```
git clone https://github.com/TECH-SAVIOURS-ORG/local-arch-repo.git
cd local-arch-repo
sudo ./server.sh
```
## Client
```
git clone https://github.com/TECH-SAVIOURS-ORG/local-arch-repo.git
cd local-arch-repo
sudo ./client.sh
chmod u+x start.sh
sudo ./start.sh
```
## Test it