You are not logged in.
Can we install a package via Pacman in specific path ?
Last edited by kamrava (2014-04-22 16:58:35)
Offline
Not if you are going to use the pre-built packages from the repo. You have to do your own building from ABS in order to change anything for the repo packages just like you build packages from source when you install anything from AUR
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
You can, however, install packages into a different root with:
pacman --root <path>Offline
You can, however, install packages into a different root with:
pacman --root <path>
Not quite what the OP wants to do however.
-r, --root <path>
Specify an alternative installation root (default is /). This should not be used as a way to install software into /usr/local instead of /usr. This option is used if you want to install a package on a temporary mounted partition that is "owned" by another system. NOTE: if database path or logfile are not specified on either the command line or in pacman.conf(5), their default location will be inside this root path.
In short don't use -r, unless you have chrooted into mounted your system externally to fix a bootup issue etc.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
demaio wrote:You can, however, install packages into a different root with:
pacman --root <path>Not quite what the OP wants to do however.
Was not sure about this because of the OP's short description.
In short don't use -r, unless you have chrooted into your system to fix a bootup issue etc.
I thought pacman -r has to be used from _outside_ of a chroot (e.g. broken system mounted to /mnt/temp), like you said, from another boot medium etc.
Offline
fixed... was thinking of chroot as a means to fix bootup issues and mis-typed I guess.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
So if -r is that discouraged as -f... why -f was removed (in favor of --force) but -r remain there????
Other option is rebuild the decire package and point in the PKGBUILD the path that you wan to use
Lenovo ThinkPad L420 modified
:: Intel i7 2560QM :: 8 GB RAM :: SSD 256 GB ::
:: DVD read+Writter :: 3 USB 3.0 Expresa Card ::
:: a Favulous 1 mins lasting Io-Li battery ::cry::
Offline
So if -r is that discouraged as -f... why -f was removed (in favor of --force) but -r remain there????
Other option is rebuild the decire package and point in the PKGBUILD the path that you wan to use
No one said its discouraged. I don't know where you got that idea. You just have to use it in the correct scenario. The OPs scenario was not correct for the use of -r
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline