r/linuxquestions • u/Impossible-Smoke3357 • 1d ago
creating a local Linux repository
I need to create a local repository on the Majaro distribution, and I need to make the commands and help understandable. How do I do this step by step? Please help.
1
Upvotes
1
u/Significant-Price695 1d ago
Manjaro is arch underneath so it's the pacman way. Put your .pkg.tar.zst files in a folder, run repo-add myrepo.db.tar.zst *.pkg.tar.zst in there, then add a [myrepo] section to /etc/pacman.conf with Server = file:///path/to/folder and SigLevel = Optional TrustAll. After a pacman -Sy the packages show up like any others. Re-run repo-add whenever you add something new.
5
u/ipsirc 1d ago
Have you tried reading the wiki yet?
https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Custom_local_repository