Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to hpe_sa_docs@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback:
- Deploy RPM packages
- Overview
- SA RPM repository
- Restrict access to RPM folders
- Install and updating RPM packages using a software policy
- About remediating obsolete RPM packages
- Use the native YUM to remediate RPM packages
- Use the native Zypper to remediate RPM packages
- Install and uninstall package flags
- RPM rollback
- Automatically update RPMs in a software policy
- Upgrade options for an RPM
- Uninstall RPM packages
Install and uninstall package flags
SA allows you to define custom command flags to be used when RPM packages are installed or uninstalled. These package flags are used by SA only when installing or uninstalling the package.
If you do not use YUM Adapter during RPM package analysis, all package flags are ignored. When using YUM Adapter, only the "--nodeps" flag is considered. For more information, see Using the native YUM to remediate RPM packages .
Note
The install or uninstall flags set on a package must be valid options for the command that will handle the install or uninstall.
The following table lists the valid flags depending on the value of Command Engine configuration parameters:
Command Engine parameters | Command used | Valid flags |
---|---|---|
way.remediate.yum: 0 | rpm |
Command options for:
|
way.remediate.yum: 2 | yum |
The current implementation does not support command flags. Note Having install or uninstall flags set on a package will not result in a failed job where as, these flags are ignored. |
way.remediate.yum: 1 (default) | yum if available else, rpm | Depending on the available command, the possible package flags are for way.remediate.yum 0 or 2. |
way.disable_zypper_plugin: 0 (default) (only for SLES 11 or higher) | zypper |
Command options appropriate for the zypper install or remove command. Note You cannot provide global zypper options using the flags (zypper [--global-options] <command> [--command-options])
|
(only for SLES 11 or higher) way.disable_zypper_plugin: 1 | rpm or yum | If way.disable_zypper_plugin is set to 1, SLES servers use the way.remediate.yum parameter and the same rules apply. |
Irrespective of the command used to install or remove the RPM packages, SA will group similar and consecutive packages based on the order that results after dependency analysis and process them in a single native command.
Depending on the operation, the following rules determine if packages are processed together:
- Uninstall: Consecutive packages that have the same uninstall flags and reboot option
- Install: Consecutive packages that have the same install flags, reboot option and, the same install mode if the install command is rpm.
Note
The exception to the above rules is the “--nodeps” flag. Each package that has this flag will be processed separately.
Example: Consider, you have to install four RPM packages in the order, a.rpm, b.rpm, c.rpm and d.rpm.
If a, b and d have the same install flags, --excludedocs, the install phase can be roughly equated to the following sequence of commands for rpm based installations:
“rpm -U --excludedocs a.rpm b.rpm”
“rpm -U c.rpm”
“rpm -U --excludedocs d.rpm”
The same above scenario applies to yum installation provided you exclude the package install flags from the following final commands:
“yum install a b”
“yum install c”
“yum install d”
Command options set by Server Automation
When setting package install and uninstall flags, it is important to use options that do not conflict with the ones SA implicitly uses.
rpm
- Uninstall:
rpm -e
with--repackage
, if creation of RPM rollback point was requested and it is supported by the rpm version - Install: The command and implicit options depend on the package Install Mode:
- Install:
rpm -i
with no custom options - Upgrade:
rpm -U
with--repackage
, if creation of RPM rollback point was requested and it is supported by the rpm version
- Install:
yum
SA uses custom configuration settings in the yum conf file, but does not pass command options when using yum to install or uninstall packages.
zypper
In addition to the associated conf file, SA uses the following command options when installing or uninstalling RPM packages with zypper:
- Uninstall:
--force-resolution
- Install: -
l, --force-resolution
and--oldpackage
(when supported by the zypper version)
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to hpe_sa_docs@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: