This rather depends on how much space you have available.
If you've just made a clean install, then it may be tidiest to do a new install, repartitioning the hard disks giving more space to the / partition.
Otherwise, you can copy a directory recursively like this:
cp -rp --no-dereference /var/ /boot
This will create a copy of your /var directory under your /boot partition.
If this completes successfully (and you don't run out of space on /boot!) then you can delete the original /var/ partition with:
And then link /var to the copy (/boot/usr) with:
ln -h /var /boot/usr
Note: Don't do this with /usr unless you are very careful. Programs like the ln command live under /usr and deleting them while running could cause all sorts of problems.
Also, make sure that the directory you're linking isn't mounted as a seperate partition.
You may also be able to clean up some space by running
to remove unused code and resources from your system executables.
You can gain some more space by using gzexe to compress executable files. They will uncompress into memory when you try to run them, so you take both a performance hit and a RAM hit.
If you have free space in /tmp and RAM to space, then you could try deleting everything under /tmp, unmounting it, remounting /tmp as a tmpfs (in-memory) filesystem (see this thread on tmpfs
), and remounting the /tmp partition somewhere where you need more space.
Hope that helps,
Robert J. Lee