Discussion:
zypper totally non-interactive?
(too old to reply)
Roger Oberholtzer
2010-11-10 15:59:58 UTC
Permalink
I want to add a call to zypper to a Tcl script. I have no trouble
determining what missing packages I want to install and running the
script. The problem is that zypper insists, it seems, on asking for
confirmation about installing packages. I understand that it is probably
generally bad form to install without getting user ok. In this case, I
am doing a check of a newly installed openSUSE system, and I want to be
sure no required packages are missing. I see how to tell zypper to auto
OK license files. But I see no way to tell it to auto OK installing
packages.

I know I know I know. But is there such an option? (I did not ask if
there SHOULD be an option. I do not want that discussion.)

Not having such an option does not stop a potential hidden package
installation. All I need to do is wrap the script in 'expect'. It is
just that this increases the list of required packages that I need to
run this. And I am trying to minimize that list.
--
Roger Oberholtzer

OPQ Systems / Ramböll RST

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden

Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org
Cristian Rodríguez
2010-11-10 16:13:48 UTC
Permalink
Post by Roger Oberholtzer
I want to add a call to zypper to a Tcl script. I have no trouble
determining what missing packages I want to install and running the
script. The problem is that zypper insists, it seems, on asking for
confirmation about installing packages. I understand that it is probably
generally bad form to install without getting user ok. In this case, I
am doing a check of a newly installed openSUSE system, and I want to be
sure no required packages are missing. I see how to tell zypper to auto
OK license files. But I see no way to tell it to auto OK installing
packages.
zypper -q --non-interactive install --auto-agree-with-licenses foobar
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org
Roger Oberholtzer
2010-11-10 16:20:25 UTC
Permalink
Post by Cristian Rodríguez
Post by Roger Oberholtzer
I want to add a call to zypper to a Tcl script. I have no trouble
determining what missing packages I want to install and running the
script. The problem is that zypper insists, it seems, on asking for
confirmation about installing packages. I understand that it is probably
generally bad form to install without getting user ok. In this case, I
am doing a check of a newly installed openSUSE system, and I want to be
sure no required packages are missing. I see how to tell zypper to auto
OK license files. But I see no way to tell it to auto OK installing
packages.
zypper -q --non-interactive install --auto-agree-with-licenses foobar
Duh! I was looking in the list of options in the 'install' part of the
man page. Of course, there are global options as well.. Thanks.
--
Roger Oberholtzer

OPQ Systems / Ramböll RST

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden

Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org
Martin Mielke
2010-11-10 21:46:41 UTC
Permalink
Hi,

is this what you were looking for?

--non-interactive, -n Do not ask anything, use default answers
automatically.



Cheers,
Martin



----- Original Message ----
Sent: Wed, November 10, 2010 4:59:58 PM
Subject: [opensuse] zypper totally non-interactive?
I want to add a call to zypper to a Tcl script. I have no trouble
determining what missing packages I want to install and running the
script. The problem is that zypper insists, it seems, on asking for
confirmation about installing packages. I understand that it is probably
generally bad form to install without getting user ok. In this case, I
am doing a check of a newly installed openSUSE system, and I want to be
sure no required packages are missing. I see how to tell zypper to auto
OK license files. But I see no way to tell it to auto OK installing
packages.
I know I know I know. But is there such an option? (I did not ask if
there SHOULD be an option. I do not want that discussion.)
Not having such an option does not stop a potential hidden package
installation. All I need to do is wrap the script in 'expect'. It is
just that this increases the list of required packages that I need to
run this. And I am trying to minimize that list.
--
Roger Oberholtzer
OPQ Systems / Ramböll RST
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
--
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org
Roger Oberholtzer
2010-11-11 07:53:20 UTC
Permalink
Post by Martin Mielke
Hi,
is this what you were looking for?
--non-interactive, -n Do not ask anything, use default answers
automatically.
Yep. I was only looking in the install commands part of the man page. I
forgot to look at the global options part. I do know better. But knowing
and doing...
--
Roger Oberholtzer

OPQ Systems / Ramböll RST

Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden

Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
--
To unsubscribe, e-mail: opensuse+***@opensuse.org
For additional commands, e-mail: opensuse+***@opensuse.org
Loading...