Running multiple Arch devices? Create your own package archive repository.
Go to file
Dan 0846fbc55f
moved files to folder
2022-01-23 17:16:55 +13:00
hooks moved files to folder 2022-01-23 17:16:55 +13:00
scripts moved files to folder 2022-01-23 17:16:55 +13:00
LICENSE Initial commit 2022-01-23 10:37:57 +13:00
README.md updated readme 2022-01-23 17:15:08 +13:00
start.sh added start.sh script 2022-01-23 17:14:39 +13:00

README.md

local-arch-repo

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

Packages

sudo pacman -S rsync

Webserver

Nginx

Add this to you webserver.

server {
        listen 8080;
        server_name SERVER_IP;

        location / {
                root /srv/http/repo/;
                autoindex         on;
        }
}

python

cd /srv/http/repo/
python -m http.server

darkhttpd

pacman -S darkhttpd
sudo -u http darkhttpd /srv/http/repo/ --no-server-id

(Optional) Crontab -e

Packages older than half a year will be deleted.

@monthly find /srv/http/repo/* -mtime +182.5 '!' -regex '*pkg*' -exec rm {} \;

Server & client

git clone https://github.com/TECH-SAVIOURS-ORG/local-arch-repo.git
cd local-arch-repo
chmod u+x start.sh
sudo ./start.sh

Test it

/root/archive_packages.sh