You are not logged in.

#1 2014-04-22 16:12:50

kamrava
Member
Registered: 2013-12-08
Posts: 75

install package in specific path

Can we install a package via Pacman in specific path ?

Last edited by kamrava (2014-04-22 16:58:35)

Offline

#2 2014-04-22 17:28:44

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: install package in specific path

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


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2014-04-22 17:41:38

demaio
Member
From: Germany
Registered: 2012-09-02
Posts: 102
Website

Re: install package in specific path

You can, however, install packages into a different root with:

pacman --root <path>

Offline

#4 2014-04-22 17:50:09

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: install package in specific path

demaio wrote:

You can, however, install packages into a different root with:

pacman --root <path>

Not quite what the OP wants to do however.

man pacman wrote:

-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.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2014-04-22 18:01:29

demaio
Member
From: Germany
Registered: 2012-09-02
Posts: 102
Website

Re: install package in specific path

Inxsible wrote:
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.

Inxsible wrote:

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

#6 2014-04-22 18:06:54

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: install package in specific path

fixed... was thinking of chroot as a means to fix bootup issues and mis-typed I guess.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2014-04-22 21:54:01

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,048

Re: install package in specific path

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

#8 2014-04-22 22:07:48

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: install package in specific path

Jristz wrote:

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


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB