[pacman-dev] [Usage] run pacman without root

nly at disroot.org nly at disroot.org
Wed Jan 8 23:53:39 UTC 2020


Is it possible to use pacman without root, and locally, say `~/pacman` instead of
global `/usr'.

I built and installed pacman from git sources.
$ cd pacman && git checkout v5.2.1
$ autoreconf -vif
$ ./configure --prefix=$HOME/pacman/usr/local --enable-static --with-libcurl --with-gpgme
$ make
$ make install

Adding pacman to path, `.bashrc':
source /home/nly/pacman/usr/local/etc/profile # (4.)

$ pacman -Q nano
warning: database file for 'core' does not exist (use '-Sy' to download)
error: package 'nano' was not found
$ pacman -Sy
error: you cannot perform this operation unless you are root.

I've linked to the etc/pacman.conf (3.) and etc/pacman.d/mirrorlist (2.).

Thanks,
Amar

----------------
1. makepkg-conf: http://nly.info.tm/pacman/makepkg.conf
2. mirrorlist: http://nly.info.tm/pacman/mirrorlist
3. pacman-conf: http://nly.info.tm/pacman/pacman.conf
4. bash-profile: http://nly.info.tm/pacman/profile


More information about the pacman-dev mailing list