Chapter 8. Modules and Libraries

Table of Contents

8.1. Packages Manipulation
8.1.1. Modules
8.1.2. Functions
8.1.2.1. Package Installation (GUI)
8.1.2.2. Package Installation (GUI, custom message)
8.1.2.3. Conditional Package Installation
8.1.2.4. Packages Installation (No GUI)
8.1.2.5. Testing
8.1.2.6. Other
8.2. Using the package manager
8.2.1. Introduction
8.2.2. Implementation
8.2.3. Querying the package manager
8.2.3.1. Checking an installed package
8.2.3.2. Checking the installation sources
8.2.3.3. Deleting a package
8.2.3.4. Installing a package
8.2.3.5. Solving dependencies
8.2.3.6. Committing the changes
8.2.4. Example code
8.3. Common Popup Dialogs
8.3.1. Simple and Expert Version
8.3.2. Headlines, Yes or No?
8.3.3. Predefined Messages
8.3.4. When to use what Popup
8.3.4.1. Decision Popups - two buttons, return true or false
8.3.4.2. Info Popups - just an "OK" button
8.4. Advanced YaST2 command line parsing
8.4.1. Important features
8.4.2. Basic usage of module CommandLine
8.4.3. Internally handled commands
8.4.4. Specification of the supported commands in YaST module
8.4.5. Advanced API
8.4.6. Example usage in YaST module
8.5. Runlevel editor library
8.5.1. Enabling/disabling service
8.5.2. Specifying runlevels for service
8.5.3. Init script actions
8.5.4. Service info
8.5.5. Is service enabled?
8.5.6. Example of usage
8.5.7. What should you know?

8.1. Packages Manipulation

This is a set of basic routines for manipulating packages.

8.1.1. Modules

The module Package is the module for handling package installation , it works on the target system and correctly differentiates between normal and autoinstallaton mode.

PackageSystem is for situations when you need immediate action (for example to start the client).

  • Package

  • PackageSystem

8.1.2. Functions

The function names should be self-descriptive, so there are no comments here. Feel free to ask if you are in doubts. (FIXME)

8.1.2.1. Package Installation (GUI)

8.1.2.2. Package Installation (GUI, custom message)

8.1.2.3. Conditional Package Installation

[Note]Note

GUI based, do not install if Mode::config is defined, only in PackageSystem)

8.1.2.4. Packages Installation (No GUI)

8.1.2.5. Testing

8.1.2.6. Other