3.4. YaST Online Update

3.4.1. The YOU Module

The YaST Online Update (YOU) module can be started from the command line as root like any other YaST module:

yast online_update .url <url>

yast online_update starts the respective module. The option url can be used to specify the server (local or on the Internet) from which YOU should get all information and patches. If you do not specify a server when starting the module, select the server or the directory in the YaST dialog. The usage of the dialog corresponds to the usage of the graphical YaST module as described in the User Guide. Like in its graphical counterpart, cronjobs for automating the update can be configured with Configure Fully Automatic Update.

3.4.2. Online Update from the Command Line

Using the command-line tool online_update, the system can be updated automatically (e.g., by means of scripts). For instance, you may want your system to search a specific server for updates and download the patches and patch information at a specified time in regular intervals. However, you may not want the patches to be installed automatically; rather, you may want to review the patches and select the patches for installation at a later time.

  • Configure a cronjob that executes the following command:

    online_update -u <URL> -g <type_specification>
    

    -u introduces the base URL of the directory tree from which the patches should be downloaded. The following protocols are supported: http, ftp, smb, nfs, cd, dvd, and dir. -g downloads the patches to a local directory without installing them. Optionally, filter the patches by specifying the type: security, recommended, or optional. If no filter is specified, online_update downloads all new security and recommended patches.

  • The downloaded packages can be installed immediately without reviewing the individual patches. online_update saves the patches in the directory /var/lib/YaST2/you/mnt. To install the patches, execute the following command:

    online_update -u /var/lib/YaST2/you/mnt/ -i
    

    The parameter -u specifies the (local) URL of the patches to install. -i starts the installation procedure.

  • To review the downloaded patches prior to the installation, start the YOU dialog:

    yast online_update .url /var/lib/YaST2/you/mnt/
    

    YOU starts and uses the local directory containing the downloaded patches instead of a remote directory on the Internet. Select the patches to install in the same way as packages for installation in the package manager.

For more information about online_update, enter online_update -h.