thanks again Xyne
]]>$ pacman -Syr foo/
error: failed to initialize alpm library (could not find or read directory)
I agree, it is not helpful. You can submit a request for auto-creation of missing directories to the pacman-dev mailing list, or at least request a more helpful message. The devs will likely tell you to submit a patch, but given how simple this should be, one of them may do it for you.
]]>thats reasonable enough. Every dir must be under the new root path.
I cant use the first example without creating the var/lib/pacman dir inside root path first.
For me, an error about initialize alpm library is something that i can handle but it could be more user friendly (bad words ?) if pacman could create the var/lib/pacman inside the new root path.
No ?
]]>If you don't want to use the --dbpath command-line option, create a custom pacman.conf file and use that with the "--config" option to install to a different root.
]]>eg.
# mkdir -pv /mnt/var/lib/pacman
# pacman -Sy base -r /mnt -v -y
or
# pacman -Sy base -r /mnt --dbpath /var/lib/pacman -v -y
the above examples are two different things, but you get my point (hopefully)
Whouldn't be possible pacman to use /var/lib/pacman (system folder) by default ?
]]>