Linux Debian support - Specifying an install target to apt ?

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > April 2007 > Specifying an install target to apt ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Specifying an install target to apt ?
Geico Caveman

2007-04-12, 7:17 pm

Hi

I wish to know if there is a way to tell apt to install to /usr/local
instead of /usr (and create symlinks in /usr to make this process
transparent to present / future dependencies and other parts of the
system). The reason I ask is that I am running out of space in / and have
plenty of space left under /usr/local.

Yes, I could build from source using checkinstall but I would then have to
set up the symlinks manually and I am not interested in compiling some 100
packages by hand.

Thanks.
zouz

2007-04-13, 7:13 am

../configure --prefix=/usr/local

zaher el siddik

Andreas Janssen

2007-04-13, 7:13 am

Hello

Geico Caveman (<spammers-go-here@spam.invalid> ) wrote:

> I wish to know if there is a way to tell apt to install to /usr/local
> instead of /usr (and create symlinks in /usr to make this process
> transparent to present / future dependencies and other parts of the
> system). The reason I ask is that I am running out of space in / and
> have plenty of space left under /usr/local.
>
> Yes, I could build from source using checkinstall but I would then
> have to set up the symlinks manually and I am not interested in
> compiling some 100 packages by hand.


I don't know a way for apt to handle this automatically. I recommend you
move some big directory (e.g. /usr/share or /usr/lib) to
your /use/local partition and symlink it to /usr.

regards
Andreas Janssen

--
Andreas Janssen <andreas.janssen@bigfoot.com>
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps-sarge.html
AJackson

2007-04-16, 1:15 am

On Apr 12, 8:39 pm, Geico Caveman <spammers-go-h...@spam.invalid>
wrote:
> Hi
>
> I wish to know if there is a way to tell apt to install to /usr/local
> instead of /usr (and create symlinks in /usr to make this process
> transparent to present / future dependencies and other parts of the
> system). The reason I ask is that I am running out of space in / and have
> plenty of space left under /usr/local.


You can't, becouse then you needed to build packages from scratch,
each and every one you install.
And Debian rules say that they should go there.

You might want to migrat to a LVM system, then you can move "disksize"
between partitions and resize file systems. You can look at several
physical partitions and even disk as one pool och disk area using for
your virtual partitions.

But as a short/fast solution, use Andreas solution. "du /usr | more"
to see where you have a large directory, and move that. You might
need to reboot after that.

You might want to try "aptitude clean" to clear caches. Check web
browser caches too, they could be large...

Good luck

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com