using expect with sun-java6-jre package
Jay Daniels
tux at myt60.net
Wed Jul 15 01:33:43 UTC 2009
On Tue, 2009-07-14 at 22:16 +0200, Soren Orel wrote:
> it brings up a licence, and I have to accept it :)
>
> On Fri, Jul 10, 2009 at 6:26 PM, sktsee <sktsee at tulsaconnect.com>
> wrote:
>
> On Thu, 2009-07-09 at 22:25 +0200, Soren Orel wrote:
> > I know, I could automate "ascii based" things, but what
> about e.g.:
> >
> > apt-get install sun-java6-jre
> >
> > install? I mean It wants me to agree with a license, and
> then I have
> > to hit enter, yes, etc..
> >
> > could there be a way to make sun-java6-jre install
> automaticly,
> > without user interaction?
> >
>
> Does apt-get -y install sun-java6-jre work?
>
> --
> sktsee
>From the shell you could...
echo "Y" | sudo apt-get install package-name
jay
More information about the ubuntu-users
mailing list