Sun Update Connection - Enterprise 1.0 User's Guide

Find Component (-fc) Command

The find-component command returns the exact names of components.

Use this command to get the values for the -T or -pT parameter used by other commands.

Parameter

  • -T component Specify the name of the component. If you type part of a name, without -sons, the output will be all components that have this string in their names. The value you specify is case-insensitive.

  • -dlt delimiter Specify the delimiter for the output.

  • -D distribution Specify the distribution to use. If not specified, the command operates on all distributions.

Flag

-sons List the contained components of the component you specified with -T.

This flag operates only if the component listed with -T is the complete name of a category or package group holding packages.

If the -T value is not unique in the Components list, include the tree path; otherwise only the first component’s sons are output.

Syntax

uce_cli -fc -T "component" [ -sons ] [ -dlt "delimiter" ] [ -D distribution ] -u username -p password

Example

uce_cli -fc -T "ROOT" -sons -dlt ", " -D RH9_IA32 -u admin -p 123

Result Example

finding categories 

ROOT/, ROOT/ARCHITECTURES, ROOT/DISTRIBUTION, ROOT/FILESYSTEM, ROOT/HANDLER, ROOT/Hardware, ROOT/Local, ROOT/SPECIAL, ROOT/Software, ROOT/extensions

Example

uce_cli -fc -T "httpd" -sons -u admin -p 123

Result Example:

finding packages 


ROOT/Software/System Environment/Daemons/httpd/httpd-2.0.40-21
ROOT/Software/System Environment/Daemons/httpd/httpd-2.0.40-21.1
ROOT/Software/System Environment/Daemons/httpd/httpd-2.0.40-21.3
ROOT/Software/System Environment/Daemons/httpd/httpd-2.0.40-21.5
ROOT/Software/System Environment/Daemons/httpd/httpd-2.0.40-21.9

Example

uce_cli -fc -T "local" -u admin -p 123

Result Example:

partial string 


ROOT/Local
ROOT/Local/Local RPMs
ROOT/SPECIAL/active_rpmdb/Local RPM DataBase version 4.0
ROOT/Software/System/Libraries/glibc-locale
ROOT/Software/System/Libraries/glibc-locale/glibc-locale-2.3.3-118 [i586]