You are not logged in.
In the pacman man pages it says that the -r flag should not be used to install software to /usr/local instead of /usr. I'm wondering then, what the best way is to use pacman to do exactly that; install software to /usr/local (or even /opt I suppose) instead of /usr. I'm tempted to do it anyways and just respecify the database and logfile paths to the standard root directory. Suggestions?
Offline
You are likely to confuse pacman if you have overlapping installations so to speak (e.g. you have packages installed to both / and /usr/local). /usr/local is usually for when you install stuff without using the package manager (i.e. you hack on a project and do "make install").
What is the reason for wanting to use pacman to install packages with rootdir being /usr/local or /opt?
Offline
Well I was using it for code speak for installing anywhere outside of the standard directory really. What I'm really looking at doing is using yaourt to install owncloud from the AUR onto my server, but install it into its own /home folder and symlink it to my http directory rather than having the actual installation on my root directory. So it wouldn't be a standard repo package I'm looking at installing.
Offline
So this is the kind of thing the manpage means when it says you should not use the "-r" option.
The correct way of doing this would be to alter the PKGBUILD to install to the location you want.
Edit: falconindy beat me to it.
Last edited by tomegun (2012-06-24 19:01:20)
Offline
Thanks! This is why I came to the forum before acting on my temptations to forego warnings.
Offline