4.3. YaST Command Line Options

Besides the text mode interface, YaST provides a pure command line interface. To get a list of YaST command line options, enter:

yast -h

4.3.1. Starting the Individual Modules

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.

4.3.2. Installing Packages from the Command Line

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.

4.3.3. Disabling Syncing with rug

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.

4.3.4. Command Line Parameters of the YaST Modules

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.