LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can I change the installation directory of programs and applications on Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/can-i-change-the-installation-directory-of-programs-and-applications-on-linux-4175549520/)

Juan Lucas 07-31-2015 11:58 PM

Can I change the installation directory of programs and applications on Linux?
 
Hello!

Is it possible to change the installation directory of programs and applications on Linux? Like installing their files on another partition of the disk, for example?

Thanks!

273 08-01-2015 04:21 AM

No, it isn't.
OK, that was the short version. The longer version is that if you're using a distribution like Linux Mint then the package manager installing the programs and libraries dictates where they go -- so you cannot change the path the are installed to. You could, I suppose, start doing things like putting system directories on another disk but that would take a long time and be very complicated.
If you are installing programs without using your package manager then you can put them where you want but they will not be automatically updated by your system and you will probably have to do things like change permission manually to whatever you feel is safest.

fatmac 08-01-2015 05:23 AM

You could put /usr or /usr/local onto a different partition at installation time
If that is what you want to do, you will need to back up all your data & re install the OS, then re install your data.

EDDY1 08-01-2015 05:32 AM

With systemd /usr on separate partition isn't supported. You'll have to rebuild initramfs to support it.
https://www.gentoo.org/support/news-...-required.html

Juan Lucas 08-01-2015 01:11 PM

Put /usr on a different partition when installing? Can I do that? How? :P

Juan Lucas 08-01-2015 07:08 PM

Ok; What I was trying to do was to have 3 disk partitions. One for Windows, another for Linux, and a third one to install programs (from both operative systems). But, come to think about it, that is not possible at all, is it?

273 08-02-2015 07:03 AM

Quote:

Originally Posted by Juan Lucas (Post 5399568)
Ok; What I was trying to do was to have 3 disk partitions. One for Windows, another for Linux, and a third one to install programs (from both operative systems). But, come to think about it, that is not possible at all, is it?

Not really and the programs for one system won't work on the other anyhow.

Juan Lucas 08-02-2015 12:45 PM

Ok. Then I'll just create a partition for Linux and it's programs and a different one for Windows and it's programs.

Thanks!


All times are GMT -5. The time now is 11:08 PM.