YumRpm
Yum Package Type
Overview
YumRpm: Yum Package Type
This package type maps the extract command to Yum's install/update commands. Basically, creating an instance of the type that sets the package-filename attribute to the RPM package name you want (e.g. "graphviz") will result in the extract command executing either Yum the install ("yum install graphviz") or update command ("yum update graphviz") depending on whether or not the package is already installed. Note that the get and finish commands are over-ridden to eliminate interactions with the ControlTier DAV repository since the package itself is in Yum's repository.
Design
- Super Type
- rpm
Role | Concrete. (Objects can be created.) |
Instance Names | Unique |
Notification | false |
Template Directory | |
Data View | Children, proximity: 1 |
Logger Name | YumRpm |
Constraints
Allowed Child Dependencies
- PackageSetting
- YumUseSudo 1
1: These types have a Singleton constraint. Only one instance may be added as a resource.
Attributes
Defaults for Imported Attributes
Name | Default | Description |
---|---|---|
package-delete | false | |
package-extract-script | ${modules.dir}/YumRpm/bin/extract.xml | |
package-get-script | ||
package-isinstalled-script | ${modules.dir}/Package/bin/is-installed.xml | |
yumUseSudo | true | The rpm and yum commands are run via sudo by default. |
Commands
View the available commands in the User Reference.
Related Types
The following types are defined for use with YumRpm.
YumSetting
Overview
YumSetting: An Yum package setting.
These settings set the corresponding attributes in the Yum Package type.
Design
- Super Type
- Setting
Role | Abstract. (Objects cannot be created.) |
Instance Names | Unique |
Constraints
Allowed Parent Dependencies
YumUseSudo
Overview
YumUseSudo: Indicate whether sudo should be used to run the rpm and yum commands
Design
- Super Type
- YumSetting
Role | Concrete. (Objects can be created.) |
Instance Names | Unique |
Attributes
Exported Attributes
Name | Property |
---|---|
yumUseSudo | settingValue |