how can i install pacman (Archlinux Package manager) with its repo (AUR) in CentOS7
21,078
Solution 1
You can install and use pacman
but you can't use AUR repo in CentOS 7
Arch users having to temporarily deal with another Linux distribution can use pacapt, a simple wrapper around other package managers.
To install pacapt
run the following commands:
sudo wget -O /usr/local/bin/pacapt \
https://github.com/icy/pacapt/raw/ng/pacapt
sudo chmod 755 /usr/local/bin/pacapt
sudo ln -sv /usr/local/bin/pacapt /usr/local/bin/pacman || true
Solution 2
No, there isn't (or rather, you shouldn't try to do this) — you need to use your distribution's package manager.
Author by
arif
Updated on September 18, 2022Comments
-
arif over 1 year
I am a Arch user and I love it, but I have to use CentOS in my office and at my laptop to comply with my office policy. So I want to use CentOS 7 as my desktop and I also don't want to leave Arch Linux completely. So is there a way by which I can install
pacman
in CentOS 7 and have test of two different distros? -
jasonwryan over 7 yearspacman is distro agnostic; so it is theoretically possible. That, of course, doesn't mean it is a good idea...
-
Stephen Kitt over 7 yearsTrue, but that won't give you AUR which seems to be what many Arch users are after with this type of request.
-
jasonwryan over 7 yearsThat's a second order issue: people not understanding pacman has nothing to do with AUR. Sigh.
-
arif over 7 yearsThanks for the out of the box answer but did you try it?? Isn't it a risky approach in server environment? I am not talking about my office's server but my server.
-
arif over 7 yearsThanks for the answer. But I want to install pacman and yaourt. I am trying to make pcaman in centos to see how its work then i will try yaourt. But thanks for the idea abt pacapt. It sounds interesting and i will try it on debian.
-
lyoko the over 7 yearsChroot is a shortcut for "Change root". it's first arguments is where we have the root filesystem of archlinux, the second argument is which program you wish to execute. chroot is safe, and it's meant for safety. developers are using it to test software without affecting the OS itself. you have more alternatives like systemd-nspawn, lxc. but chroot is simple, safe enough, old school solution, and doesn't require as much resources.