Rechercher une page de manuel
beakerlib-rpms
Langue: en
Version: 2010-05-12 (fedora - 01/12/10)
Section: 1 (Commandes utilisateur)
NAME
BeakerLib - rpms - Package manipulation helpersDESCRIPTION
Functions in this BeakerLib script are used for RPM manipulation.FUNCTIONS
Rpm Handling
rlCheckRpmCheck whether a package is installed.
rlCheckRpm name [version] [release] [arch]
- name
- Package name like "kernel"
- version
- Package version like 2.6.25.6
- release
- Package release like "55.fc9"
- arch
- Package architucture like "i386"
Returns 0 if the specified package is installed.
rlAssertRpm
Assertion making sure that a package is installed.
rlAssertRpm name [version] [release] [arch]>
- name
- Package name like "kernel"
- version
- Package version like 2.6.25.6
- release
- Package release like "55.fc9"
- arch
- Package architucture like "i386"
Returns 0 and asserts PASS if the specified package is installed.
rlAssertNotRpm
Assertion making sure that a package is not installed. This is just inverse of "rlAssertRpm".
rlAssertNotRpm name [version] [release] [arch]>
- name
- Package name like "kernel"
- version
- Package version like 2.6.25.6
- release
- Package release like "55.fc9"
- arch
- Package architucture like "i386"
Returns 0 and asserts PASS if the specified package is not installed.
Example
Function "rlAssertRpm" is useful especially in prepare phase where it causes abort if a package is missing, while "rlCheckRpm" is handy when doing something like:
if ! rlCheckRpm package; then yum install package rlAssertRpm package fi
AUTHORS
- *
- Petr Muller <pmuller@redhat.com>
- *
- Jan Hutar <jhutar@redhat.com>
- *
- Petr Splichal <psplicha@redhat.com>
- *
- Ales Zelinka <azelinka@redhat.com>
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre