cetpkgsupport contains various useful utilities that are used, for instance, by the CET ups table files.

removing old ups products

As of cetpkgsupport v1_12_02, the utility script remove_product can be used to remove a ups product and its dependencies. The script generates a list of products which can be removed. No product will be listed for removal if it is used by another product that is NOT already listed for removal.

source <product_diretory>/setup
setup cetpkgsupport

usage: remove_product <product_directory> <product> <version> [temp database file] [report]
       If no database file is specified, a new file will be generated.
       If "report" is specified, the script will list all upstream dependencies.
       Make sure that ups is setup.