Author Topic: How do you change the programs default install directory?  (Read 752 times)

0 Members and 1 Guest are viewing this topic.

Offline ImINZAYNE22

  • Neuling
  • *
  • Posts: 4
  • You name it! I eat it!
  • Branch: stable
  • Desktop: Xfce 4.12
  • GPU Card: nVidia Geforce GTX 750 Ti (Old: nVidia Geforce GTS 450)
  • GPU driver: Free
  • Skill: Intermediate
How do you change the programs default install directory?
« on: 16. October 2015, 16:52:14 »
The big question is how do you change a program directory before you install it in Pamac?  :-\ I just started using Manjaro 15.09 (Bellatrix) Xfce 4.12 version but how do I do this!!!

Anybody like a Guru or a Expert would REALLY help!

Is there anybody?
Walking on sunshine!

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3190
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: How do you change the programs default install directory?
« Reply #1 on: 16. October 2015, 17:43:13 »
Without having read th Arch Wiki yet, I would  think about renaming the default package folder then creating a symlink to the folder of your choice and naming it like the default install folder.
Full info is here: https://www.archlinux.org/pacman/pacman.conf.5.html
« Last Edit: 16. October 2015, 18:01:46 by eugen-b »
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline ImINZAYNE22

  • Neuling
  • *
  • Posts: 4
  • You name it! I eat it!
  • Branch: stable
  • Desktop: Xfce 4.12
  • GPU Card: nVidia Geforce GTX 750 Ti (Old: nVidia Geforce GTS 450)
  • GPU driver: Free
  • Skill: Intermediate
Re: How do you change the programs default install directory?
« Reply #2 on: 16. October 2015, 23:54:23 »
all I need is a way just one way just a command or a help page ANYTHING could help
Walking on sunshine!

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: How do you change the programs default install directory?
« Reply #3 on: 18. October 2015, 15:16:03 »
I don't get your question at all. What do you want to achieve? Give me an example step by step.

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: How do you change the programs default install directory?
« Reply #4 on: 18. October 2015, 15:21:07 »
like we discussed in irc, try 'pacstrap /path/to/install <packagename>' .
also
Quote
-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
           temporarily mounted partition that is "owned" by another system.  NOTE: If database path or log file are
           not specified on either the command line or in pacman.conf(5), their default location will be inside this
           root path.
from pacman manual. run
Code: [Select]
man pacman
not sure if pamac can do that. imo GUI can't replicate pacman's ability to the full.
« Last Edit: 18. October 2015, 15:33:50 by badbodh »
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline Strit

  • Maintainer
  • ***
  • Posts: 746
  • Manjaro Torrent Maintainer
    • Strits.dk
  • Branch: Stable
  • Desktop: XFCE
  • GPU Card: GTX 760 OC
  • GPU driver: Non-free nvidia 361
  • Kernel: 4.4.8-1-MANJARO
  • Skill: Intermediate
Re: How do you change the programs default install directory?
« Reply #5 on: 19. October 2015, 19:00:50 »
It sounds like you want to change your default package partition/folder.

This can be done in the /etc/pacman .conf file. Open it with:
Code: [Select]
sudo nano /etc/pacman.confWARNING: This can mess up your system, if not done right!

In here, there's an [options] section. In it you will fine a few lines, that defines where packages get installed etc. The defaults on these lines are:
Code: [Select]
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/

You can uncomment (means remove the # in front of it) the lines you want to change, and change it to what you like.

When you are finished making changes, press Ctrl+o to save the file and Ctrl+x to exit the editor. After this, any new packages you install should be installed in the paths you specified.


PS: If this is not what you wanted to do, then I don't understand the question either.
Desktop PC: Manjaro XFCE 15.12 (stable, kernel 4.4)
Private Laptop: Manjaro Strit 16.03 (unstable, kernel 4.6)
Work Laptop: Manjaro Strit 16.03 (stable, kernel 4.4)
Netbook: Arch Linux XFCE/LXqt (i686, kernel 4.0)