Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a "--repo <file>" option #58

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Added a "--repo <file>" option #58

wants to merge 6 commits into from

Conversation

ogier
Copy link

@ogier ogier commented Jan 30, 2012

Instead of installing built packages as foreign packages, this flag lets you update a local repository.

Pacman's support for AUR packages isn't particularly spectacular, so this flag lets you use packer to automatically build, install and update a local repository that you can share, or just include in pacman.conf.

For example, you can put the following into your pacman.conf:

[aur]
Server = file:///home/ogier/aur

then run

mkdir ~/aur
packer -S --repo ~/aur/aur.db.tar.gz packer dropbox ... whatever

And now you can pacman -S anything you have added to this local repo, just like it were official. To keep things up to date on the machine with your AUR repo, you should really run three commands:

packer -Syu # to update build dependencies
packer -Syu --repo whatever.db.tar.gz # to rebuild anything in your AUR repo
packer -Syu # to get the stuff you rebuilt

Clearly most people don't want to do this on every update, so the flag isn't for everyone, but it's a dead simple way to maintain a repo with prebuilt AUR packages, something I was doing manually before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant