SD-UX keeps track of software installations, products, and filesets on your system with the Installed Products Database (IPD) for installed software and with catalog files for software in depots.
Both the IPD and catalog files are created and constantly modified by other SD-UX operations (swinstall, swcopy, and swremove), they are not directly accessible if you want to change the information they contain. If you need to edit the information in either the IPD or in any depots’ catalog files, you must use the swmodify command.
The swmodify command adds, modifies, or deletes software objects or attributes defined in a software depot, primary root or alternate root. It is a direct interface to a depot’s catalog files or a root’s Installed Products Database. It does not change the files that make up the object, it only manipulates the information that describes the object.
Using swmodify, you can
• Add new bundle, product, subproduct, fileset, control script or file definitions to existing objects
• Remove the description of software objects from a depot catalog file or root IPD
• Change attribute values for any existing object.
• Define attributes for new objects that you add.
The equivalent IPD files for a depot are called catalog files. When a depot is created or modified using
swcopy, catalog files are built (by default in /var/spool/sw/catalog) that describe the depot and its contents.
IPD Contents
Located in the directory /var/adm/sw/products, the IPD is a series of files and subdirectories that contain information about all the products that are installed under the root directory (/).
Catalog files are the equivalent IPD files but they are for software stored in a depot. When a depot is created or modified using swcopy, these files are created and placed in the specified depot (or in the default /var/spool/sw depot). They describe the depot and its contents.
The swinstall, swconfig, swcopy, and swremove tasks automatically add to, change and delete IPD and catalog file information as the commands are executed. swlist and swverify tasks read the IPD information and use it to affect command behavior.
The IPD also contains the swlock file, which manages simultaneous read and/or write access to software objects.
Retrieving Information from the IPD
• To display all attributes for a product, use swlist -v -l product.
• To display all attributes for products and subproducts, use swlist -v -l subproduct.
• swlist -l fileset -a date <product>
0 comments:
Post a Comment