Software ProviderΒΆ
Overview
OpenLMI-Software is a CIM provider managing software packages on a Linux machine. It exposes remotely accessible object-oriented API using WBEM set of protocols and technologies.
Clients
The API can be accessed by any WBEM-capable client. OpenLMI already provides:
- Python module lmi.scripts.software, part of OpenLMI scripts.
- Command line tool: LMI metacommand, with ‘software’ subcommand.
Features
- Enumerate installed and available packages.
- Enumerate package repositories.
- Package lookup.
- Package installation.
- Package removal.
- Package update.
- Package verification [*].
- Enable and disable repository.
Currently, above can be performed on single packages only. Dependencies are resolved and installed when needed. However, whole system update is out of scope of this provider as of now.
[*] | Available only for RPM packages. |
Implementations
Currently there are two implementations. The first is a stable one written in python and requiring YUM, therefore it can manage just RPM packages. Second one is written in C and uses PackageKit as a backend. It is unstable though.
Examples
There are several examples how to use OpenLMI-Software provider remotely from LMIShell:
- List installed packages.
- List available packages.
- List package repositories.
- Find packages.
- Install a package.
- Remove a package.
- Update a package.
- Verify a package.
- Enable and disable repositories.
Table of contents: