Using multiple pacman wrappers together
I had a quick look around the web but found nothing, perhaps someone more familiar with the configuration files for various pacman wrappers can help.
I'm wondering if I can chain multiple pacman wrappers together. The way I envision it working is making each pacman wrapper call another wrapper instead of calling pacman directly. I'm hoping to use pacmatic, pacaur, powerpill and pacserve together. Powerpill has support for pacserve built in, so I would need something like pacmatic -> pacaur -> powerpill -> pacman.
Is this kind of setup possible? While I am comfortable making modifications to software if necessary (I'm a dev), I don't want to have to maintain my own fork as these tools get updated, so I'd much rather a config change.
About this post
- Posted
- Archived
- Score
- 4 · 100% up
- Kind
- Text
- ID
- 2evsaw
6 comments
At least for pacaur I know this is not easily possible. Pacaur itself has a code part as to which args it uses itself or passes forward to pacman (starts at line 1113). Addendum: Also your lineup is wrong. Pacaur should be the highest, as it has AUR access. Pacmatic does not and would not pass AUR-searches forward to pacaur.
I assumed that pacmatic doesn't even search for packages, but instead just passes the argument onto pacman after checking for news?
I didn't realise pacaur was just one giant bash script! What about line 35? I'm not on my Arch box at the moment but it seems like I can just change this to something else which will parse the same command line arguments as pacman.
EDIT: Turns out that will indeed work: https://bbs.archlinux.org/viewtopic.php?pid=1216059#p1216059 Now that I look at it more closely, that entire section of the script is just configuration. It would be better if they separated it a little more.
Still not sure about pacmatic, I'll do some more research.
EDIT2: Looks like I've found a solution for pacmatic too. https://bbs.archlinux.org/viewtopic.php?pid=1003290#p1003290
Like you suggest, I'm not 100% sure on the ordering. I'll have a play around when I get home tonight and let you know.
The correct order should be pacmatic > pacaur > powerpill > pacman.
I know both pacmantic and powerpill work with pacaur, but I've never tried both at the same time. Try the following:
Both variables can be exported in your .bashrc (reload your session to take change into account, or source the file again). Also, beware of powerpill if you haven't used it before. It can be a real bitch if not properly configured.
For a long time I set pacman-color as the pacman executable in yaourt.
hmm... maybe I should switch.
EDIT: pacaur has a similar setting, I didn't find it because it's not in a config file, but a config section of the bash script. https://bbs.archlinux.org/viewtopic.php?pid=1216059#p1216059