Software

Installing and Removing Software

To install, uninstall, and update software on your machine, use Software+Software Management. This opens a package manager dialog as shown in Figure 8.2, “YaST Package Manager”.

Figure 8.2. YaST Package Manager

YaST Package Manager

In SUSE® Linux Enterprise, software is available in the form of RPM packages. Normally, a package contains everything needed for a program: the program itself, the configuration files, and all documentation. A list of individual packages is displayed to the right in the individual package window. The content of this list is determined by the currently selected filter. If, for example, the Patterns filter is selected, the individual package window displays all packages of the current selection.

In the package manager, each package has a status that determines what to do with the package, such as “Install” or “Delete.” This status is shown by a symbol in a status box at the beginning of the line. Change the status by clicking or selecting the desired status from the menu that opens when the item is right-clicked. Depending on the current situation, some of the possible status flags may not be available for selection. For example, a package that has not yet been installed cannot be set to “Delete.” View the available status flags with Help+Symbols.

The font color used for various packages in the individual package window provides additional information. Installed packages for which a newer version is available on the installation media are displayed in blue. Installed packages whose version numbers are higher than those on the installation media are displayed in red. However, because the version numbering of packages is not always linear, the information may not be perfect, but should be sufficient to indicate problematic packages. If necessary, check the version numbers.

Installing Packages

To install packages, select packages for installation and click Accept. Selected packages should have the Install status icon. The package manager automatically checks the dependencies and selects any other required packages (resolution of dependencies). To view other packages required for installation before clicking Accept, choose Extras+Show Automatic Package Changes from the main menu. After installing packages, continue working with the package manager by clicking Install More or close it by clicking Finish.

The package manager provides preselected groups for installation. You can select an entire group instead of single packages. To view these groups, use Filter in the left frame.

[Tip]List of All Available Packages

To display all packages on your installation media, use the filter Package Groups and select zzz All at the bottom of the tree. SUSE Linux Enterprise contains a number of packages and it might take some time to display this long list.

Installing and Removing Patterns

The Patterns filter groups the program packages according to application purpose, such as desktop or office application. The various groups of the Patterns filter are listed with the installed packages preselected.

Click the status box at the beginning of a line to install or uninstall this pattern. Select a status directly by right-clicking the pattern and using the context menu. From the individual package overview to the right, which displays the packages included in the current pattern, select and deselect individual packages.

Installing and Removing Language Support

To find language-specific packages, such as translated texts for the user interface of programs, documentation, and fonts, use the Languages filter. This filter shows a list of all languages supported by SUSE Linux Enterprise. If you select one of these, the right frame shows all packages available for this language. Among these, all packages applying to your current software selection are automatically tagged for installation.

To uninstall a language from your system, select a language from the language list and uncheck the status box at the beginning of a line.

[Note]Note

Because language-specific packages may depend on other packages, the package manager may select additional packages for installation.

Packages and Installation Sources

If you want to find only packages from the specific source, use the Installation Sources filter. In the default configuration, this filter shows a list of all packages from the selected source. To restrict the list, use a secondary filter.

To view a list of the all installed packages from the selected installation source, select the filter Installation Sources then select Installation Summary from Secondary Filters and deactivate all check boxes except Keep.

The package status in the individual package window can be changed as usual. However, the changed package may no longer meet the search criteria. To remove such packages from the list, update the list with Update List.

Installing Source Packages

A package containing the source files for the program is usually available. The sources are not needed for running the program, but you may want to install the sources to compile a custom version of the program.

To install sources for selected program, mark the check box in the Source column. If you cannot see a check box, your installation sources do not contain the source of the package.

Saving the Package Selection

If you want to install the same packages on several computers, you can save your configuration to file and use it for other systems. To save your package selection, choose File+Export from the menu. To import a prepared selection, use File+Import.

[Important]Hardware Compatibility

Because this function saves the exact package list, it is only reliable when the hardware is identical on the source and target systems. For more complicated situations, AutoYaST, described in Chapter 5, Automated Installation, may be a better choice.

Removing Packages

To remove packages, assign the correct status to the packages to remove and click Accept. Selected packages should have the Delete status. If a package required by other installed packages is marked for deletion, the package manager issues an alert with detailed information and alternative solutions.

Reinstalling Packages

If you find damaged files that belong to package or you want to reinstall the original version of a package from your installation media, reinstall the package. To reinstall packages, select packages for reinstallation and click Accept. Selected packages should have the Update status. If any dependency issues arise with installed packages, the package manager issues an alert with detailed information and alternative solutions.

Searching for Packages, Applications, and Files

To find a specific package, use the Search filter. Enter a search string and click Search. By specifying various search criteria, you can restrict the search to display a few or even only one package. You can also define special search patterns using wild cards and regular expressions in Search Mode.

[Tip]Quick Search

In addition to the Search filter, all lists of the package manager feature a quick search. Simply enter a letter to move the cursor to the first package in the list whose name begins with this letter. The cursor must be in the list (by clicking the list).

To find a package by name, select Name, enter the name of the package to find in the search field, and click Search. To find a package by text in the description, select Summary and Descriptions, enter a search string, and click Search.

To search for the package that contains a certain file, enter the name of the file, select RPM "Provides", and click Search. To find all packages that depend on a particular package, select RPM "Requires", enter the name of package, and click Search.

If you are familiar with the package structure of SUSE Linux Enterprise, you can use the Package Groups filter to find packages by subject. This filter sorts the program packages by subjects, such as applications, development, and hardware, in a tree structure to the left. The more you expand the branches, the more specific the selection is. This means fewer packages are displayed in the individual package window.

Installation Summary

After selecting the packages for installation, update, or deletion, view the installation summary with Installation Summary. It shows how packages will be affected when you click Accept. Use the check boxes to the left to filter the packages to view in the individual package window. For example, to check which packages are already installed, deactivate all check boxes except Keep.

The package status in the individual package window can be changed as usual. However, the respective package may no longer meet the search criteria. To remove such packages from the list, update the list with Update List.

Information about Packages

Get information about the selected package with the tabs in the bottom right frame. If another version of the package is available, you get information about both versions.

The Description tab with the description of the selected package is automatically active. To view information about package size, version, installation media, and other technical details, select Technical Data. Information about provided and required files is in Dependencies. To view available versions with their installation sources, click Versions.

Disk Usage

During the selection of the software, the resource window at the bottom left of the module displays the prospective disk usage of all mounted file systems. The colored bar graph grows with every selection. As long as it remains green, there is sufficient space. The bar color slowly changes to red as you approach the limit of disk space. If you select too many packages for installation, an alert is displayed.

Checking Dependencies

Some packages depend on other packages. This means that the software of the package only works properly if another package is also installed. There are some packages with identical or similar functionality. If these packages use the same system resource, they should not be installed at the same time (package conflict).

When the package manager starts, it examines the system and displays installed packages. When you select to install and remove packages, the package manager can automatically check the dependencies and select any other required packages (resolution of dependencies). If you select or deselect conflicting packages, the package manager indicates this and submits suggestions for solving the problem (resolution of conflicts).

To activate the automatic dependency check, select Autocheck, located under the information window. With Autocheck activated, any change of a package status triggers an automatic check. This is a useful feature, because the consistency of the package selection is monitored permanently. However, this process consumes resources and can slow down the package manager. For this reason, the automatic check is not activated by default. Regardless of the state of Autocheck, a consistency check is performed when you confirm your selection with Accept.

If you click Check, located under the information window, the package manager checks if the current package selection results in any unresolved package dependencies or conflicts. In the event of unresolved dependencies, the required additional packages are selected automatically. For package conflicts, the package manager opens a dialog that shows the conflict and offers various options for solving the problem.

For example, sendmail and postfix may not be installed concurrently. Figure 8.3, “Conflict Management of the Package Manager” shows the conflict message prompting you to make a decision. postfix is already installed. Accordingly, you can refrain from installing sendmail, remove postfix, or take the risk and ignore the conflict.

[Warning]Handling Package Conflicts

Unless you are very experienced, follow the suggestions of YaST when handling package conflicts, because otherwise the stability and functionality of your system could be endangered by the existing conflict.

Figure 8.3. Conflict Management of the Package Manager

Conflict Management of the Package Manager

Installing -devel Packages

The package manager provides functions for quick and easy installation of devel and debug packages. To install all devel packages for your installed system, choose Extras+Install All Matching — -devel Packages. To install all debug packages for your installed system, choose Extras+Install All Matching — -debuginfo Packages.

Installing Add-On Products

Add-on products are extensions for your system. You can install a third party add-on product or a special extension of your SUSE Linux Enterprise, for example, the SDK add-on or a CD with binary drivers. To install a new add-on, use Software+Add-On Product. You can select various types of product media, like CD, FTP or local directory. You can work also directly with ISO files. To add an add-on as ISO file media, select Local Directory then choose ISO Images.

After successfully adding the add-on media, the package manager window appears. If the add-on provides a new pattern, see the new item in the Patterns filter. To view the list of all packages from the selected installation source, select the filter Installation Sources and choose the installation source to view. To view packages from a selected add-on by package groups, select the secondary filter Package Groups.

[Tip]Creating Custom Add-On Products

Create your own add-on products with YaST Add-On Creator. Read about the YaST add-on creator at http://developer.novell.com/wiki/index.php/Creating_Add-On_Media_with_YaST. Find technical background information at http://developer.novell.com/wiki/index.php/Creating_Add-Ons.

Selecting the Installation Source

You can use multiple installation sources of several types. Select them and enable their use for installation or update using Software+Installation Source. When started, it displays a list of all previously registered sources. Following a normal installation from CD, only the installation CD is listed. Click Add to include additional sources in this list. Sources can be CDs, DVDs, or network sources, such as NFS and FTP servers. Even directories on the local hard disk can be selected as the installation medium. See the detailed YaST help text for more details.

All registered sources have an activation status in the first column of the list. Enable or disable individual installation sources by clicking Activate or Deactivate. During the installation of software packages or updates, YaST selects a suitable entry from the list of activated installation sources. When you exit the module with Close, the current settings are saved and applied to the configuration modules Software Management and System Update.

Registering SUSE Linux Enterprise

To get technical support and product updates, your system must be registered and activated. If you skipped the registration during installation, register with the help of the Novell Customer Center Configuration module from Software. This dialog is the same as that described in Section 3.11.4, “Novell Customer Center Configuration”.

YaST Online Update

Install important updates and improvements with YaST Online Update. The current updates for your SUSE Linux Enterprise are available from the product specific update catalogs containing patches. To add or remove catalogs, use the Software+Installation Source module, described in Section 8.3.3, “Selecting the Installation Source”.

[Note]Error on Accessing the Update Catalog

If you are not able to access the update catalog, this might be due to an expired subscription. Normally, SUSE Linux Enterprise comes with a one or three years subscription, during which you have access to the update catalog. This access will be denied once the subscription ends.

In case of an access denial to the update catalog you will see a warning message with a recommendation to visit the Novell Customer Center and check your subscription. The Novell Customer Center is available at http://www.novell.com/center/.

To install updates and improvements with YaST, run Software+Online Update. All new patches (except the optional ones) that are currently available for your system are already marked for installation. Clicking Accept automatically installs these patches. After the installation has completed, confirm with Finish. Your system is now up-to-date.

Definition of Terms

Package

A package is a compressed file in rpm format that contains the files for a particular program.

Patch

A patch consists of one or more packages—either full packages or patchrpm or deltarpm packages— and may also introduce dependencies to packages that are not installed yet.

patchrpm

A patchrpm consists only of files that have been updated since it was first released for SUSE Linux Enterprise 10. Its download size is usually considerably smaller than the size of a package.

deltarpm

A deltarpm consists only of the binary diff between two defined versions of a package and therefore, has the smallest download size. Before being installed, the rpm package has to be rebuild on the local machine.

Installing Patches Manually

The Online Update window consists of five sections. The list of all patches available is on the left. Find the description of the selected patch displayed below the list of patches. The disk usage is displayed at the bottom of the left column. The right column lists the packages included in the selected patch (a patch can consist of several packages) and, below, a detailed description of the selected package.

Figure 8.4. YaST Online Update

YaST Online Update

The patch display lists the available patches for SUSE Linux Enterprise. The patches are sorted by security relevance. The color of the patch name, as well as a pop-up window under the mouse cursor, indicate the security status of the patch: Security (red), Recommended (blue), or Optional (black). There are three different views on patches. Use Show Patch Category to toggle the views:

Installable Patches (default view)

Currently not installed patches that apply to packages installed on your system.

Installable and Installed Patches

All patches that apply to packages installed on your system.

All Patches

All patches available for SUSE Linux Enterprise.

A list entry consists of a symbol and the patch name. For a list of possible symbols, press Shift+F1. Actions required by Security and Recommended patches are automatically preset. These actions are Autoinstall, Autoupdate, or Autodelete. Actions for Optional patches are not preset—right-click on a patch and choose an action from the list.

If you install an up-to-date package from a catalog other than the update catalog, the requirements of a patch for this package may be fulfilled with this installation. In this case a check mark is displayed in front of the patch summary. The patch will be visible in the list until you mark it for installation. This will in fact not install the patch (because the package already is up-to-date), but mark the patch as having been installed.

Most patches include updates for several packages. If you want to change actions for single packages, right-click on a package in the package window and choose an action. Once you have marked all patches and packages as desired, proceed with Accept.

[Tip]Disabling deltarpms

Since rebuilding rpm packages from deltarpms is a memory and CPU time consuming task, certain setups or hardware configuration might require to disable the usage of deltarpms for performance sake. To disable the use of deltarpms edit the file /etc/zypp/zypp.conf and set download.use_deltarpm to false.

Another alternative for updating software is the ZENworks updater applet for KDE and GNOME. The ZENworks updater helps monitor new patches. It also provides a quick update function. For more information, refer to Section “Managing Packages with the ZEN Tools” (Chapter 1, Getting Started with the KDE Desktop, ↑KDE User Guide).

Automatic Online Update

YaST also offers the possibility to set up an automatic update. Select Software+Automatic Online Update. Configure a Daily or a Weekly update. Some patches, such as kernel updates, require user interaction, which would cause the automatic update procedure to stop. Check Skip Interactive Patches for the update procedure to proceed automatically. In this case, run a manual Online Update from time to install patches that require interaction.

When Only Download Patches is checked, the patches are downloaded at the specified time but not installed. They must be installed manually. The patches are downloaded to the rug cache directory, /var/cache/zmd/web, by default. Use the command rug get-prefs cache-directory to get the current rug cache directory. For more information about rug, see Section 8.14, “Update from the Command Line with rug”.

Updating from a Patch CD

The Patch CD Update module from the Software section installs patches from CD, not from an FTP server. The advantage lies in a much faster update with CD. After the patch CD is inserted, all patches on the CD are displayed in the dialog. Select the desired packages for installation from the list of patches. The module issues an error message if no patch CD is present. Insert the patch CD then restart the module.

Updating the System

Update the version of SUSE Linux Enterprise installed on your system with Software+System Update. During operation, you can only update application software, not the base system. To update the base system, boot the computer from an installation medium, such as CD. When selecting the installation mode in YaST, select Update.

The procedure for updating the system is similar to a new installation. Initially, YaST examines the system, determines a suitable update strategy, and presents the results in a suggestion dialog. Click Change or the individual items to change any details.

Update Options

Set the update method for your system. Two options are available.

Update with Installation of New Software and Features Based on the Selection

To update the entire system to the latest versions of software, select one of the predefined selections. These selections ensure that packages that did not exist previously are also installed.

Only Update Installed Packages

This option merely updates packages that already exist on the system. No new features are installed.

Additionally, you can use Delete Outdated Packages to remove packages that do not exist in the new version. By default, this option is preselected to prevent outdated packages from unnecessarily occupying hard disk space.

Packages

Click Packages to start the package manager and select or deselect individual packages for update. Any package conflicts should be resolved with the consistency check. The use of the package manager is covered in detail in Section 8.3.1, “Installing and Removing Software”.

Backup

During the update, the configuration files of some packages may be replaced by those of the new version. Because you may have modified some of the files in your current system, the package manager normally makes backup copies of the replaced files. With this dialog, determine the scope of these backups.

[Important]Scope of the Backup

This backup does not include the software. It only contains configuration files.

Language

Primary and other languages currently installed on the system are listed here. Change them by clicking Language in the displayed configuration or with Change+Language. Optionally, adapt the keyboard layout and time zone to the region where the primary language is spoken. Find more about language selection in Section 8.5.13, “Language Selection”.

Important Information about Updates

The system update is a very complex procedure. For each program package, YaST must first check which version is installed on the computer then determine what needs to be done to replace the old version with the new version correctly. YaST also tries to adopt any personal settings of the installed packages.

In most cases, YaST replaces old versions with new ones without problems. A backup of the existing system should be performed prior to updating to ensure that existing configurations are not lost during the update. Conflicts can then be resolved manually after the update has finished.

Installing into a Directory

This YaST module allows you to install packages into a directory specified by you. Select where to place the root directory, how to name directories, and the type of system and software to install. After entering this module, YaST determines the system settings and lists the default directory, installation instructions, and software to install. Edit these settings by clicking Change. All changes must be confirmed by clicking Accept. After changes have been made, click Next until informed that the installation is complete. Click Finish to exit the dialog.

Checking Media

If you encounter any problems using the SUSE Linux Enterprise installation media, you can check the CDs or DVDs with Software+Media Check. Media problems are more likely to occur with media you burn yourself. To check that a SUSE Linux Enterprise CD or DVD is error-free, insert the medium into the drive and run this module. Click Start for YaST to check the MD5 checksum of the medium. This may take several minutes. If any errors are detected, you should not use this medium for installation.