Besides the text mode interface, YaST provides a pure command line interface. To get a list of YaST command line options, enter:
yast -h
To save time, the individual YaST modules can be started directly. To start a module, enter:
yast <module_name>
View a list of all module names available on your system with yast -l or yast --list. Start the network module, for example, with yast lan.
If you know a package name and the package is provided by any
of your active installation sources, you can use command line
option -i to install the package:
yast -i <package_name>
or
yast --install <package_name>
package_name can be a single short package name,
for example gvim which is
installed with dependency checking or the full path to an rpm package,
which is installed without dependency checking.
Normally, all YaST installation sources are synced with zmd daemon and rug. If you have a problem with syncing between YaST and rug, disable syncing and repair your configuration by removing the problematic source and adding a functional source. To disable syncing, issue the following command:
yast inst_source norug
The command does not switch off syncing permanently.
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 YaST2 module does not support the command line interface.