Re: QQ about apt.

2005-10-28 Thread Brian Nelson
Scott Muir <[EMAIL PROTECTED]> writes:

> (noob)
>
> I would like to know if and how it is possible to do a non-interactive
> install of an .deb package.  The pages I have read talk only of a 'yes to
> all questions' option which is obviously useless if the package you are
> installing has questions other than yes/no and so on.

Something like:

export DEBIAN_FRONTEND=noninteractive
export DEBIAN_PRIORITY=critical
apt-get -y --force-yes -o 'DPkg::Options::=--force-confold' ...

> The docs also speak of being able to set *arbitrary* options in the command
> line.  This seemed to be more related to the apt-get program rather than the
> packages.
>
> Two examples I want to do are Apache2 and PostgreSQL which require some
> additional prompting.  The purpose here is to create a set of steps which
> can quickly install a Debian system from scratch, limit down-time and remove
> some of the human element.
>
> Is there a way of doing this?  I'm at about a 3 bananas out of 5 on the
> howler monkey scale.

I think "debconf pre-seeding" is how you'd want to go about that...

-- 
Captain Logic is not steering this tugboat.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: QQ about apt.

2005-10-28 Thread Sebastian Tennant

>>>I'm no expert Scott, but I reckon there's probably away to instruct
>>>dpkg to bypass the pre-inst(allation) scripts. 
>>> 

>> This could be dangerous, as some packages generate additional files and
>> whatnot during post-inst.  The information gathered during pre-inst is
>> usually relevant there.  I am not sure if they all have sane defaults in
>> the absence of the pre-inst input.
>> -Roberto

Scott Muir wrote:
> (sigh) Thank you both...
>
> This still stinks of "there's gotta be a way".. anyone?
> S.

Try posting again with a different subject line:

 Is there a way to safely bypass apt's pre-inst scripts?

or something like that.

It sometimes works for me.

sebyte

P.S. I think I remember reading that this list's netiquette requires bottom
posting.  Please correct me if I'm wrong anyone.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: QQ about apt.

2005-10-27 Thread Bryan Donlan
On 10/27/05, Scott Muir <[EMAIL PROTECTED]> wrote:
> (noob)
>
> I would like to know if and how it is possible to do a non-interactive
> install of an .deb package.  The pages I have read talk only of a 'yes to
> all questions' option which is obviously useless if the package you are
> installing has questions other than yes/no and so on.
>
> The docs also speak of being able to set *arbitrary* options in the command
> line.  This seemed to be more related to the apt-get program rather than the
> packages.
>
> Two examples I want to do are Apache2 and PostgreSQL which require some
> additional prompting.  The purpose here is to create a set of steps which
> can quickly install a Debian system from scratch, limit down-time and remove
> some of the human element.
>
> Is there a way of doing this?  I'm at about a 3 bananas out of 5 on the
> howler monkey scale.

Try:
DEBCONF_FRONTEND=noninteractive 

This'll assume defaults on all debconf questions. I'm not sure how
it'll interact with conffile replacement prompts however.



Re: QQ about apt.

2005-10-27 Thread Joe Smith


"Scott Muir" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

(noob)

I would like to know if and how it is possible to do a non-interactive
install of an .deb package.  The pages I have read talk only of a 'yes to
all questions' option which is obviously useless if the package you are
installing has questions other than yes/no and so on.

The docs also speak of being able to set *arbitrary* options in the 
command
line.  This seemed to be more related to the apt-get program rather than 
the

packages.

Two examples I want to do are Apache2 and PostgreSQL which require some
additional prompting.  The purpose here is to create a set of steps which
can quickly install a Debian system from scratch, limit down-time and 
remove

some of the human element.

Is there a way of doing this?  I'm at about a 3 bananas out of 5 on the
howler monkey scale.



How about debconf pre-seeding? Most programs use debconf to ask the 
questions. However if debconf already
has answers to the questions then it does not bother to ask them. In fact 
the config script is apparently sometimes
run in both the pre-inst and the postinst so ignoring questions which have 
answers already is almost critcal.


The following is one way to pre-seed debconf. With this method it is very 
important that you not pre-seed for any
packages that will not be installed, because otherwise those values will rot 
in the database forever.


Anyway lets say the package name is 'foobar'

From a system where it is already configured you should run:

debconf-get-selections|grep ^foobar > foobar.preseed

Then to load that into the database to avoid the questions, simply get the 
file onto the system and run:

debconf-get-selections foobar.preseed

Note thatyou can concatonate a bunch of these file together if you want. 
This will then let you use only one line to

pre-seed a whole bunch of packages.


There are also other ways to pre-seed, but I don't know about them. 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: QQ about apt.

2005-10-27 Thread Scott Muir
(sigh) Thank you both...

This still stinks of "there's gotta be a way".. anyone?
S.

-Original Message-
From: Roberto C. Sanchez [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 27, 2005 3:59 PM
To: debian-user@lists.debian.org
Subject: Re: QQ about apt.


On Thu, Oct 27, 2005 at 11:24:37PM +0100, Sebastian Tennant wrote:
> 
> I'm no expert Scott, but I reckon there's probably away to instruct
> dpkg to bypass the pre-inst(allation) scripts. 


This could be dangerous, as some packages generate additional files and
whatnot during post-inst.  The information gathered during pre-inst is
usually relevant there.  I am not sure if they all have sane defaults in
the absence of the pre-inst input.
-Roberto
-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.5/150 - Release Date: 10/27/2005


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: QQ about apt.

2005-10-27 Thread Roberto C. Sanchez
On Thu, Oct 27, 2005 at 11:24:37PM +0100, Sebastian Tennant wrote:
> 
> I'm no expert Scott, but I reckon there's probably away to instruct
> dpkg to bypass the pre-inst(allation) scripts.  It's during the
> execution of these scripts that most of these questions are asked for
> the purposes of creating config files.  If you can put the config
> files in place by some other method you might be able to automate the
> install by bypassing the pre-inst scripts.  I'm only guessing mind
> you, but it might be an angle to explore.
> 

This could be dangerous, as some packages generate additional files and
whatnot during post-inst.  The information gathered during pre-inst is
usually relevant there.  I am not sure if they all have sane defaults in
the absence of the pre-inst input.

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto


pgp4Ibqt1oiFQ.pgp
Description: PGP signature


Re: QQ about apt.

2005-10-27 Thread Sebastian Tennant
Scott Muir wrote:
> (noob)
> 
> I would like to know if and how it is possible to do a non-interactive
> install of an .deb package.  The pages I have read talk only of a 'yes to
> all questions' option which is obviously useless if the package you are
> installing has questions other than yes/no and so on.
> 
> The docs also speak of being able to set *arbitrary* options in the command
> line.  This seemed to be more related to the apt-get program rather than the
> packages.
> 
> Two examples I want to do are Apache2 and PostgreSQL which require some
> additional prompting.  The purpose here is to create a set of steps which
> can quickly install a Debian system from scratch, limit down-time and remove
> some of the human element.
> 
> Is there a way of doing this?  I'm at about a 3 bananas out of 5 on the
> howler monkey scale.
> 
> TIA,
> Scott.

I'm no expert Scott, but I reckon there's probably away to instruct dpkg to 
bypass the
pre-inst(allation) scripts.  It's during the execution of these scripts that 
most of
these questions are asked for the purposes of creating config files.  If you 
can put the
config files in place by some other method you might be able to automate the 
install by
bypassing the pre-inst scripts.  I'm only guessing mind you, but it might be an 
angle to
explore.

sebyte


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]