I'm using Ubuntu 10.10 - the Maverick Meerkat. Whenever I install software using the Software Center, it installs it to /usr/lib
. I have less space in this drive. Is it possible to change the default installation path to any other place? And how?
I'm using Ubuntu 10.10 - the Maverick Meerkat. Whenever I install software using the Software Center, it installs it to /usr/lib
. I have less space in this drive. Is it possible to change the default installation path to any other place? And how?
Debian/Ubuntu uses a standard directory hierarchy. The command
man hier
will describe this for you. It is common for packages to create symlinks to place files in the correct place when the program expects them elsewhere.There are two options I use to increase space on a partition:
home
,var
orusr
. Then I rsync the directory onto the new partition and mount it. Cleanup is done by mounting the root partition on /mnt and removing the files from the directory under /mnt.Cleaning up
/tmp
and moving it to a tmpfs mount can free up space if it is on disk.You may also free up space with the
apt autoclean
orapt clean
commands. The second option will remove all download debs for /var/cache/apt/archives.Running apt and removing obsolete kernels may also free up space. Usually, two are sufficient, and they don't always get removed automatically. Don't remove the current kernel. If you haven't rebooted for a long time you may want to reboot to the newest kernel before removing old kernels.
The command
du -sk /usr /home /var | sort -n
will tell you how large those directory trees are.There is no facility to change the installation structure. They are hard-coded in the installation packages. What you can do is find a way to increase the size of your root partition. You can do this if you boot with your Ubuntu installation CD.
If you can provide the output of the command
we might be able to help on how to resize.
The installation path is a standard location and cannot be changed. If you have another drive that has space, you can move any amount of your files to that drive by mounting your big directories at partitions on that drive (this is easiest to do when you are first installing Ubuntu). It's usually a good idea to move your /home directory to a different partition/drive rather than trying to move your OS files.
Detailed instructions can be found here: https://help.ubuntu.com/community/Partitioning/Home/Moving