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.

Share:
21,078
arif
Author by

arif

Updated on September 18, 2022

Comments

  • arif
    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
    jasonwryan over 7 years
    pacman is distro agnostic; so it is theoretically possible. That, of course, doesn't mean it is a good idea...
  • Stephen Kitt
    Stephen Kitt over 7 years
    True, but that won't give you AUR which seems to be what many Arch users are after with this type of request.
  • jasonwryan
    jasonwryan over 7 years
    That's a second order issue: people not understanding pacman has nothing to do with AUR. Sigh.
  • arif
    arif over 7 years
    Thanks 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
    arif over 7 years
    Thanks 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
    lyoko the over 7 years
    Chroot 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.