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 use a standard directory hierarchy. The command
There are two options I use to increase space on a partition:
- As a temporary solution I create a directory on another partition for a directory like /var/cache/apt/archives which can take a fair amount of space. I then move the contents of the directory to the new partition and replace the directory with a sumlink.
You may also free up space with the
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.
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