[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Passing argument to apt-get



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Aug 22, 2010 at 09:02:43PM -0400, Frank Zambrini wrote:
> Hi Everyone,
>
> I'm trying to build a gnome-less Lenny image (xfce), however some gnome 
> stuff has crept in (gksu, gnome-mime-data, gnome-mount, etc). From what I 
> can tell, (since none of packages require gnome) is that apt is installing 
> the "recommended" packages as if they were dependencies, i.e. synaptic only 
> recommends gksu but somehow it gets installed in my live image. I did a 
> little reading and found the option for apt '--no-install-recommends' but I 
> am not sure how I could pass this to live helper. Does anyone know how this 
> could be done, or any other way to remove the gnome stuff? Thanks in 
> advance.

You are looking for lh config's --apt-options option:

   lh config --apt options "space separated list of apt options"

e.g.

   lh config --apt-options "... --no-install-recommends ..."

(if there is just one option you may lose the quotes, of course).

HTH
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFMcfKuBcgs9XrR2kYRAhNwAJ9zjj6wGIZmKrL/5K9tK14/xoouFgCeL7BX
5aNcQqwgOYi22WpeR2ldiGQ=
=cGxF
-----END PGP SIGNATURE-----


Reply to: