Page 17 of 23
soft_available_version
Get the available version of an upgradeable package
Arguments
$1 | Software name |
Returns
0 if an update is available, 1 if not installed, 2 if up-to-dateDisplays
Available version if one exists, nothing if notsoft_clean_cache
Clean the software installation cache
Arguments
None
Returns
Always 0Displays
Nothingsoft_exists
Check if software exists (installed or available for installation)
Arguments
$1 | Software name |
Returns
0 if software exists, 1 if notDisplays
Nothingsoft_install
Install software(s) if not already present on the host
If a software is installed but not up to date, it is not upgraded.
Arguments
$* | Software name(s) |
Returns
Always 0Displays
Info msgsoft_install_upgrade
Install or upgrade software(s)
For each of the software names supplied as arguments :
- if the software is not installed, install it, - if the software is installed and upgradeable, upgrade it, - if the software is up-to-date, do nothing.
Arguments
$* | Software name(s) |
Returns
Always 0Displays
Info msgsoft_is_installed
Check if a software is installed
Arguments
$1 | Software name |
Returns
0 if software is installed, 1 if not.Displays
Nothingsoft_is_up_to_date
Check if a software is installed and the latest version
Arguments
$1 | Software name |
Returns
0 if software is up-to-date, 1 if not installed, 2 if upgradeable.Displays
Nothingsoft_is_upgradeable
Check if a newer version of a software is available
Note : if the software is not installed, it is not considered as upgradeable
Arguments
$1 | Software name |
Returns
0 if the software is upgradeable, !=0 if not.Displays
Nothingsoft_list
List installed software
Returns a sorted list of installed software
Linux output: (name-version-release.arch)
Arguments
None
Returns
Always 0Displays
software listsoft_reinstall
Reinstall software(s), even at same version
Arguments
$* | Software name(s) |
Returns
Always 0Displays
Info msgsoft_remove
Uninstall software(s) (ignoring and bypassing dependencies)
Nothing is done for softwares which are not present on the host.
Arguments
$* | Software name(s) |
Returns
Always 0Displays
Info msgsoft_repo_list
List defined software repository names
Arguments
None
Returns
Always 0Displays
List of software repositories, one per linesoft_uninstall
Uninstall software(s) (including dependencies)
Nothing is done for softwares which are not present on the host.
Arguments
$* | Software name(s) |
Returns
Always 0Displays
Info msgsoft_version
get version of an installed software
Arguments
$1 | Software name |