LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2015, 12:58 AM   #1
Juan Lucas
LQ Newbie
 
Registered: Jul 2015
Distribution: Manjaro, Debian...
Posts: 29

Rep: Reputation: Disabled
Question 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!
 
Old 08-01-2015, 05:21 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,420

Rep: Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287
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.
 
1 members found this post helpful.
Old 08-01-2015, 06:23 AM   #3
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Posts: 3,208

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 08-01-2015, 06:32 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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
 
1 members found this post helpful.
Old 08-01-2015, 02:11 PM   #5
Juan Lucas
LQ Newbie
 
Registered: Jul 2015
Distribution: Manjaro, Debian...
Posts: 29

Original Poster
Rep: Reputation: Disabled
Put /usr on a different partition when installing? Can I do that? How? :P
 
Old 08-01-2015, 08:08 PM   #6
Juan Lucas
LQ Newbie
 
Registered: Jul 2015
Distribution: Manjaro, Debian...
Posts: 29

Original Poster
Rep: Reputation: Disabled
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?
 
Old 08-02-2015, 08:03 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,420

Rep: Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287
Quote:
Originally Posted by Juan Lucas View Post
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.
 
1 members found this post helpful.
Old 08-02-2015, 01:45 PM   #8
Juan Lucas
LQ Newbie
 
Registered: Jul 2015
Distribution: Manjaro, Debian...
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thumbs up

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!
 
  


Reply

Tags
directory, installation, linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Run Windows Applications as Linux Programs Whatif Linux - Newbie 2 02-16-2011 12:57 PM
Is there any possible program to run Linux applications and programs in windows OS? ephraim76 Linux - Software 9 05-02-2006 11:31 PM
Installation wont have me change cds therefore i just get the OS no programs Bombo Linux - Software 2 03-20-2005 08:44 PM
Installation wont have me change cds therefore i just get the OS and some programs Bombo Linux - Newbie 3 03-20-2005 03:27 PM
Trying to change temp directory for Cold Fusion installation. Newbie Newfie Linux - Newbie 0 01-30-2003 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration