[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+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
El 10/11/10 12:59, Roger Oberholtzer escribió:
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+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2010-11-10 at 13:13 -0300, Cristian Rodríguez wrote:
El 10/11/10 12:59, Roger Oberholtzer escribió:
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+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi, is this what you were looking for? --non-interactive, -n Do not ask anything, use default answers automatically. Cheers, Martin ----- Original Message ----
From: Roger Oberholtzer
To: opensuse@opensuse.org 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+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2010-11-10 at 13:46 -0800, Martin Mielke wrote:
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+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Cristian Rodríguez
-
Martin Mielke
-
Roger Oberholtzer