You are not logged in.

#1 2021-05-05 11:18:21

Carrot8
Member
Registered: 2021-05-05
Posts: 4

Is it possible to install packages with pacman to other drive?

Can i do like pacman --target /usr/media/user/good-partition/ -S good-package? And then add /usr/media/user/good-partition/ to PATH.

Hopefully i explained it good enough.

Offline

#2 2021-05-05 11:22:33

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Is it possible to install packages with pacman to other drive?

No. Linux does not use relocatable frameworks/applications like Windows does, you cannot just install things to arbitrary paths.

Why do you even want this?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2021-05-05 11:39:01

Carrot8
Member
Registered: 2021-05-05
Posts: 4

Re: Is it possible to install packages with pacman to other drive?

eschwartz wrote:

No. Linux does not use relocatable frameworks/applications like Windows does, you cannot just install things to arbitrary paths.

Why do you even want this?

Thank you for fast reply!
Because i have 120gb ssd and 2tb hardrive and i want to install black arch packages which need much storage to my hardrive.

Last edited by Carrot8 (2021-05-05 11:40:07)

Offline

#4 2021-05-05 11:42:38

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Is it possible to install packages with pacman to other drive?

Which blackarch packages need so much space? Do they install a specific directory that contains most of the large files?

It is common for people to partition their system and mount e.g. /var or /home to different drives with more space. You could mount a bigger drive to one specific directory that needs it.

You can also use bind mounts to mount a directory instead of a drive, e.g. /usr/media/user/good-partition/blackarch-extra-space to /usr/share/bighugeapp/


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2021-05-05 11:48:50

Carrot8
Member
Registered: 2021-05-05
Posts: 4

Re: Is it possible to install packages with pacman to other drive?

eschwartz wrote:

Which blackarch packages need so much space? Do they install a specific directory that contains most of the large files?

It is common for people to partition their system and mount e.g. /var or /home to different drives with more space. You could mount a bigger drive to one specific directory that needs it.

You can also use bind mounts to mount a directory instead of a drive, e.g. /usr/media/user/good-partition/blackarch-extra-space to /usr/share/bighugeapp/

Idk it has 2670 packages.

Yeah i know.

I maybe try bind mounting, but how do i tell pacman to install it there?

Offline

#6 2021-05-05 12:29:27

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,350

Re: Is it possible to install packages with pacman to other drive?

I maybe try bind mounting, but how do i tell pacman to install it there?

You don't .
pacman will install to /usr/share/bighugeapp/ , the bind mount will ensure the files / folders under that are put in your desired place.

Check https://unix.stackexchange.com/question … bind-mount for an explanation


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2021-05-05 12:46:57

Carrot8
Member
Registered: 2021-05-05
Posts: 4

Re: Is it possible to install packages with pacman to other drive?

Okay thx i will try it!
I'm just thinking that blackarch is group and i don't know how it install like in many folders or just one?

Offline

Board footer

Powered by FluxBB