Return to index

package functions

int = install(packages_string[,quiet_mode_bool])

top

Installs the packages in packages_string. Returns 0 on success or non-zero error code. (-1 is an unknown OS)

Example:

# Example for install (not available, internal use only)


bool = is_installed(package_name)

top

Is package package_name installed?

Example:

# Example for is_installed
println is_installed("curl")  # true/false


success_flag = service(service_name,action)

top

Attempts to take the required action on service service_name. Returns true if successful.


int = uninstall(packages_string)

top

Removes the packages in packages_string. Returns 0 on success or non-zero error code. (-1 is an unknown OS)

Example:

# Example for uninstall
uninstall("mypkg")


int = vcmp(string_v1,string_v2)

top

Returns -1, 0, or +1 depending on semantic version string string_v1 being less than,

[#SOL]equal to, or greater than version string string_v2.

Example:

# Example for vcmp
println vcmp("1.0.0","1.1.0")  # -1