rpm
A binary RPM package type
Overview
rpm:
A binary RPM package type
This package type's primary use is to be generated by the RpmBuilder type, although other rpm packages
can be modeled in this manner as well. Packages are processed, handled, and installed using rpm, using
sudo by default.
Design
- Super Type
-
Package
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Notification |
false
|
Template Directory |
|
Data View |
Children,
proximity:
1
|
Logger Name
|
rpm |
Constraints
Allowed Child Dependencies
1: These types have a Singleton constraint. Only one instance may be added as a resource.
Allowed Property Values
Property |
Allowed Values |
Default |
Enforced |
package-filetype |
|
|
true |
package-repo-url |
-
/${context.module}/rpms/FILENAME
|
-
/${context.module}/rpms/FILENAME
|
false |
Attributes
These are the default locations and settings in RHEL/CentOS. If you wish to use a different set of
defaults for Vendor, URL, Copyright, etc., you may want to create a trivial subtype that only sets
those defaults.
Defaults for Imported Attributes
Name |
Default |
Description |
package-create-script
|
${modules.dir}/rpm/bin/create.xml |
script to execute for create command |
package-extract-script
|
${modules.dir}/rpm/bin/extract.xml |
script to execute for extract command |
package-isinstalled-script
|
${modules.dir}/rpm/bin/assertPackageIsInstalled.xml |
script to execute for assertPackageIsInstalled command |
package-remove-script
|
${modules.dir}/rpm/bin/remove.xml |
script to execute for remove command |
package-verified-script
|
${modules.dir}/rpm/bin/assertPackageIsVerified.xml |
script to execute for assertPackageIsVerified command |
rpmCategory
|
none |
rpmCopyright
|
none |
rpmDbPath
|
/var/lib/rpm |
rpmDefaultGroup
|
root |
rpmDefaultUser
|
root |
rpmDistribution
|
none |
rpmLicense
|
none |
rpmPackager
|
none |
rpmUrl
|
none |
rpmUseSudo
|
true |
rpmVendor
|
none |
Commands
Related Types
The following types are defined for use with rpm.
RpmCategory
Overview
RpmCategory:
Group for categorizing the RPM package
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmCategory
|
settingValue |
RpmCopyright
Overview
RpmCopyright:
RPM package copyright message
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmCopyright
|
settingValue |
RpmDbPath
Overview
RpmDbPath:
Location of RPM database
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmDbPath
|
settingValue |
RpmDefaultPath
Overview
RpmDefaultPath:
Default group to use for file attributes
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmDefaultGroup
|
settingValue |
RpmDefaultUser
Overview
RpmDefaultUser:
Default user to use for file attributes
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmDefaultUser
|
settingValue |
RpmDistribution
Overview
RpmDistribution:
RPM package's Linux or product distribution
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmDefaultGroup
|
settingValue |
RpmLicense
Overview
RpmLicense:
Software license under which the package is released
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmLicense
|
settingValue |
RpmPackager
Overview
RpmPackager:
Name of the packager
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmPackager
|
settingValue |
RpmSetting
Overview
RpmSetting:
An RPM package setting.
These settings set the corresponding attributes in the rpm type.
Design
- Super Type
- Setting
Role |
Abstract. (Objects cannot be created.)
|
Instance Names |
Unique
|
Constraints
Allowed Parent Dependencies
RpmUrl
Overview
RpmUrl:
URL to RPM package home
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmUrl
|
settingValue |
RpmUseSudo
Overview
RpmUseSudo:
Indicate whether sudo should be used to run rpm commands that need to update the system database
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmUseSudo
|
settingValue |
RpmVendor
Overview
RpmVendor:
Name of RPM package vendor
Design
- Super Type
-
RpmSetting
Role |
Concrete. (Objects can be created.)
|
Instance Names |
Unique
|
Attributes
Exported Attributes
Name |
Property |
rpmVendor
|
settingValue |