Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to automate some interactions with yast2. I assume I can do everything on the command line that I can do in the curses interface, but I'm not sure how to figure out what the commands are.

For example, if I want yast2 to use a local ISO as a package repository, I know how to do it through the curses GUI (Software->Add-On Productions, Add, Local ISO Image, Browse, ...).

Is there a way to identify these interactions with arguments that can be passed to yast2 on the command-line?

share|improve this question
up vote 2 down vote accepted

It seems you can't do as much with command line than with the ncurses interface, as yast modules have to individually implement support for CLI.

According to openSUSE 11.1 Reference Guide:

To use YaST functionality in scripts, YaST provides command line support for individual modules. Not all modules have a command line support. To display the available options of a module, enter:

yast <module_name> help

If a module does not provide command line support, the module is started in text mode and the following message appears:

This YaST module does not support the command line interface.

(use yast --list to list modules)

share|improve this answer

Are you looking for a command line approach to system configuration, or package management?

If you're looking for package management, openSUSE's command line interface is primarily zypper, not yast.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.