pacsync $repo
Thank you! I'm glad to know about this. Will try it today.
]]>pacsync $repo
]]>pacman --config /path/to/private_repo_pacman.conf -Sy
[ -e /var/lib/pacman/db.lck ] || sudo cp /my/repo/myaur.db /var/lib/pacman/sync/myaur.db
If there are updates and I don't want to run a full pacman -Syu, I test with pacman -U instead of putting new build in my repo .
Once my system is uptodate I then add the new version to my private repo and run pacman -Syu to update all pacman db files.
]]>pacman -Sl $repo
However, that command will show outdated info for my repository unless I run pacman -Sy first. However, the wiki says:
When installing packages in Arch, avoid refreshing the package list without upgrading the system.
What is the right approach for exploring a private repo without disrupting the entire system? I do build my packages in a chroot, but then I install them into a private repository on my system.
EDIT: apg gave a good solution:
pacsync $repo