Novell ZENWORKS LINUX MANAGEMENT 7.2 IR2 - ADMINISTRATION GUIDE 09-25-2008 Administration Manual page 577

Table of Contents

Advertisement

lock-add (la) [options] [name or pattern] [version] [...]
Adds a package lock rule. This prevents changes to the installation state of the package that is
specified in the lock. The package name can be specified individually, with wildcard patterns,
or even with version number relations.
The package_name can include wildcard characters. The following table explains the valid
relational operators that can be used with the package in the command:
Relational
Functionality
Operator
=
Locks only the specific package version.
<
Locks all versions of the package older than the specified version, excluding the
specified version.
>
Locks all versions of the package later than the specified version, excluding the
specified version.
<=
Locks all versions of the package older than the specified version, as well as the
specified version.
>=
Locks all versions of the package later than the specified version, as well as the
specified version.
If you want to install a specific version of the package, ZENworks first checks if the package
version has been locked, then installs the package version only if it is not locked. For example,
lets assume that all the later versions of the package, "X 1.7" have been locked by using the
rug la X >1.7 command. If you try to install X 1.9 package by using the rug in X
(1.9)command, the installation fails.
lock-delete (ld) [options] [lock-number] [...]
Deletes the package lock you specify by its number. You can find the number for each lock
with the lock-list (ll) command.
lock-list (ll) [options] [lock-number] [...]
Lists the package locks that have been put in place. Locks are sorted by ID number.
package-file (pf) [filename]
Gets the package which contains the specified file.
packages (pa) [options] [catalog] [...]
Displays the packages in a given catalog. If no catalog is specified, all packages in all catalogs
are listed. Accepts the following option flags:
-i, --installed-only - Shows only installed packages.
-u, --uninstalled-only - Shows only uninstalled packages.
--sort-by-name - Sorts packages by name (default).
--sort-by-catalog - Sorts packages by catalog.
--show-nevra - Shows the NEVRA details of the packages.
If the --show-nevra option is not specified, the output for this command is presented in the
Status, Bundle, Name, Version, and Arch columns. These provide the details of every package
that is part of the given bundle. Bundle, Name, Version, and Arch represent the bundle name,
Command Line Utilities 577

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks linux management 7.2ir2

Table of Contents