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

View file

@ -1,5 +1,5 @@
# local-arch-repo # 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. This is actually for a pinephone and other x86_64 Arch devices. Probably PIs (armv7l) will follow.
# Usage # Usage
@ -33,6 +33,7 @@ python -m http.server
### darkhttpd ### darkhttpd
``` ```
pacman -S darkhttpd
sudo -u http darkhttpd /srv/http/repo/ --no-server-id 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 {} \; @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 git clone https://github.com/TECH-SAVIOURS-ORG/local-arch-repo.git
cd local-arch-repo cd local-arch-repo
sudo ./server.sh chmod u+x start.sh
``` sudo ./start.sh
## Client
```
git clone https://github.com/TECH-SAVIOURS-ORG/local-arch-repo.git
cd local-arch-repo
sudo ./client.sh
``` ```
## Test it ## Test it