LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing software in different partition (https://www.linuxquestions.org/questions/linux-newbie-8/installing-software-in-different-partition-581606/)

almon 09-02-2007 03:07 AM

installing software in different partition
 
my root partition is almost full and it happened to me many timed that i was not able to boot into my linux box due to less disk space
so is there a way to install softwares in different partition
for ex ...r there any parameters in apt-get command which install softwares in different partitions....

thanx in advance..

David the H. 09-02-2007 03:51 AM

I'm not sure if it's possible, but if there's a way to do it, you'll find it in the apt howto. I'm not sure this is a good idea though. It could quickly become confusing trying to keep track of which packages are installed where.

A better way to solve your problem would be to move your entire /usr directory onto a separate partition. Simply create a new partition, move all of the files in /usr into it (be sure to back it up first), then edit your /etc/fstab so that that partition mounts at /usr. If you do it correctly, the changeover should be transparent to your system.

pixellany 09-02-2007 07:36 AM

If you have the space to create other partitions, then you could simply re-size "/" to make it bigger.....
How full is the disk?

Tinkster 09-02-2007 01:34 PM

Or make the extra partition space into e.g. /usr, copy everything
across, and then mount it as /usr. If all is well (all this in
init 1) unmount it again and delete the content of /usr on the
original ... in terms of the installation and apt it won't make
a difference - apt should be agnostic in regards to partitions.



Cheers,
Tink


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