Skip to content

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

Open
ogier wants to merge 6 commits intokeenerd:masterfrom
ogier:master
Open

Added a "--repo <file>" option#58
ogier wants to merge 6 commits intokeenerd:masterfrom
ogier:master

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