Chapter 9. Managing Software with ZENworks

Contents

9.1. Managing Packages from the Command Line with rug
9.2. Managing Packages with the ZEN Tools
9.3. For More Information

SUSE Linux Enterprise is ready for integration into an environment administrated by Novell ZENworks Linux Management. It includes an open source ZENworks management agent, back-end daemon, and user space software management tools. Novell ZENworks package management tools use a ZENworks Linux Management server to download packages and updates. If no ZENworks Linux Management server is available in your local network, your system can get updates from the Novell Customer Center, which is described in Section 3.11.4, “Customer Center”.

The back-end daemon for the Novell ZENworks Linux Management Agent is the ZENworks Management Daemon (ZMD). ZMD performs software management functions. The daemon is started automatically during boot.

Check the status of the daemon with rczmd status. To start the daemon, enter rczmd start. To restart it, use rczmd restart. Deactivate it with rczmd stop.

ZMD can also be started with special options to control its behavior. To have ZMD always start with some special options permanently, set ZMD_OPTIONS in /etc/sysconfig/zmd then run SuSEconfig. The available options are:

-n, --no-daemon

Do not run the daemon in the background.

-m, --no-modules

Do not load any modules.

-s, --no-services

Do not load initial services.

-r, --no-remote

Do not start remote services.

ZMD configuration is stored in /etc/zmd/zmd.conf. You can change the configuration manually or with rug. The URL for the ZENworks service that zmd uses at initial start-up and a registration key are stored in /var/lib/zmd. Updates are downloaded to the ZMD cache in /var/cache/zmd.

ZMD is the back-end only. The software management tasks are initiated through the command line tool rug or the graphical Software Updater applet.

9.1. Managing Packages from the Command Line with rug

rug works with the zmd daemon to install, update, and remove software according to the commands given. It can install software from local files or from servers. You can use one or more installation sources, known as services. Supported services are mount for local files and yum or ZENworks for servers.

rug sorts software from services into catalogs (also known as channels), groups of similar software. For example, one catalog might contain software from an update server and another some software from a third-party software vendor. Subscribe to individual catalogs to control the display of available packages and prevent the accidental installation of unwanted software. Operations are normally performed only on software from catalogs to which you are subscribed.

9.1.1. Obtaining Information from rug

rug provides a wide range of useful information. Check the status of zmd with rug, view registered services and catalogs, or see information about available patches.

If the zmd daemon is not used for a certain period of time, it can be switched to sleep mode. To check the zmd status and reactivate the daemon, use rug ping. The command wakes up zmd and logs status information of the daemon.

To see your registered services, use rug sl. If you want to add a new service and you are not sure which services are supported on your system, use rug st.

To check for available patches, use rug pch. To view information about a patch, enter rug patch-info patch.

9.1.2. Subscribing to rug Services

By default, a newly installed system is subscribed to several services. To add a new service, use rug sa URI service_name. Replace service_name with a meaningful and unique string that identifies the new service. Information about additional installation sources is provided at http://en.opensuse.org/Installation_Sources.

9.1.3. Installing and Removing Software with rug

To install a package from any subscribed catalogs, use rug in package_name. To install from a selected catalog only, add --entire-catalog and the catalog to install use to the command. View information about a package with rug if package_name.

To remove a package, use rug rm package_name. If other packages depend on this package, rug displays their names, versions, and types. Confirm removal of the package.

9.1.4. rug User Management

One of the biggest advantages of rug is user management. Normally only root can update or install new packages. With rug, you can distribute the right to update the system to other users and restrict them, for example, only to updating without the possibility to remove software. Privileges you can grant are:

install

The user may install new software

lock

The user may set package locks

remove

The user may remove software

subscribe

The user may change channel subscriptions

trusted

The user is considered trusted, so may install packages without package signatures

upgrade

The user may update software packages

view

This allows the user to see which software is installed on the machine and which software is in available channels. The option is relevant only to remote users. Local users are normally permitted to view installed and available packages.

superuser

Permits all rug commands except user management and settings, which must be done locally.

To give a user permission to update the system, use the command rug ua username upgrade. Replace username with the name of the user. To revoke the privileges of a user, use command rug ud username. To list users with their rights, use rug ul.

To change the current privileges of a user, use rug ue username. Replace username with the name of the desired user.

The edit command is interactive. It lists privileges of the selected user and gives a prompt. Enter the plus (+) or minus (-) symbol and the name of the privilege. Then press Enter. For example, to permit the user to delete software, enter +remove. To save and quit, press Enter at a blank prompt.

9.1.5. Scheduling Updates

Using rug, the system can be updated automatically (for example, by scripts). The simplest example is a fully automatic update. To do this, configure a cron job as root that executes rug up -y. The up -y option downloads and installs the patches from your catalogs without confirmation.

If you instead want only to download the patches then select the patches for installation at a later time, use rug up -dy. The up -dy option downloads the patches from your catalogs without confirmation and saves them to the rug cache. The default location of the rug cache is /var/cache/zmd.

9.1.6. Configuring rug

rug is customized through a set of preferences. Some of them are preconfigured during installation. To list the preferences available, use rug get. To edit a preference, enter rug set preference. For example, adjust settings if you need to update your system through a proxy. Before downloading the updates, send your username and password to the proxy server. To do so, use the commands:

rug set proxy-url url_path
rug set proxy-username name
rug set proxy-password password

Replace url_path with the name of your proxy server. Replace name with your username. Replace password with your password.

9.1.7. For More Information

For more information about updating from the command line, enter rug --help or see the rug(1) man page. The --help option is also available for all rug commands. If, for example, you need help for rug update, enter rug update --help. For examples and detailed information, see http://en.opensuse.org/Using_rug.