From: Nima Azarbayjany on
Hi,

How do you direct aptitude to install packages to a specific directory? For
example, Google Chrome by default is installed under /opt but I prefer it to
install in my /usr partition rather than in the root partition which
contains /opt. That's mostly because I have partitioned my hard disk
according to the default scheme of Debian's installer which allocates only a
few hundred megs to the root partition. So my question is, how do you ask
aptitude to install Chrome in /usr?

Thanks.

Nima
From: PaulNM on
Celejar wrote:

> For your specific problem, why not just mount a different disk /
> partition onto /opt?
>
> Celejar

That's a good idea. To the OP, if you don't have any spare partition,
but have room in /usr, you could create a sparse file. Format and
loopback mount it to /opt.

PaulNM


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Celejar on
On Fri, 11 Dec 2009 19:13:45 +0330
Nima Azarbayjany <i.adore.debian(a)gmail.com> wrote:

> Hi,
>
> How do you direct aptitude to install packages to a specific directory? For
> example, Google Chrome by default is installed under /opt but I prefer it to
> install in my /usr partition rather than in the root partition which
> contains /opt. That's mostly because I have partitioned my hard disk
> according to the default scheme of Debian's installer which allocates only a
> few hundred megs to the root partition. So my question is, how do you ask
> aptitude to install Chrome in /usr?

I don't know if this can be done using .deb packages and the apt
system. If the software is available as a source tarball, then the
installation script / instructions may contain a way to define the
installation location.

For your specific problem, why not just mount a different disk /
partition onto /opt?

Celejar
--
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: John Hasler on
PaulNM writes:
> To the OP, if you don't have any spare partition, but have room in
> /usr, you could create a sparse file. Format and loopback mount it to
> /opt.

Just use a bind mount. man bind

I'd rather not install such a bungled package at all, though.
--
John Hasler


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: John Hasler on
I wrote:
> Just use a bind mount. man bind

That should read "man mount". Read the "bind" section.
--
John Hasler


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
 |  Next  |  Last
Pages: 1 2
Prev: ttyUSB0 and GPS
Next: hp-deskjet-6122 printer and cups