LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-31-2015, 11:58 PM   #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, 04:21 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 05:23 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,521

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, 05:32 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

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, 01: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, 07: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, 07:03 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 12: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



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 11:57 AM
Is there any possible program to run Linux applications and programs in windows OS? ephraim76 Linux - Software 9 05-02-2006 10:31 PM
Installation wont have me change cds therefore i just get the OS no programs Bombo Linux - Software 2 03-20-2005 07:44 PM
Installation wont have me change cds therefore i just get the OS and some programs Bombo Linux - Newbie 3 03-20-2005 02:27 PM
Trying to change temp directory for Cold Fusion installation. Newbie Newfie Linux - Newbie 0 01-30-2003 08:41 PM

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

All times are GMT -5. The time now is 05:29 PM.

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
Open Source Consulting | Domain Registration