Module luarocks.remove
Module implementing the LuaRocks "remove" command. Uninstalls rocks.
Functions
check_dependents (name, versions) | Obtain a list of packages that depend on the given set of packages (where all packages of the set are versions of one program). |
delete_versions (name, versions) | Delete given versions of a program. |
run (..., name, version) | Driver function for the "install" command. |
Functions
- check_dependents (name, versions)
-
Obtain a list of packages that depend on the given set of packages (where all packages of the set are versions of one program).
Parameters
- name: string: the name of a program
- versions: array of string: the versions to be deleted.
Return value:
array of string: an empty table if no packages depend on any of the given list, or an array of strings in "name/version" format. - delete_versions (name, versions)
-
Delete given versions of a program.
Parameters
- name: string: the name of a program
- versions: array of string: the versions to be deleted.
Return value:
boolean or (nil, string): true on success or nil and an error message. - run (..., name, version)
-
Driver function for the "install" command.
Parameters
- ...:
- name: string: name of a rock. If a version is given, refer to a specific version; otherwise, try to remove all versions.
- version: string: When passing a package name, a version number may also be given.
Return value:
boolean or (nil, string): True if removal was successful, nil and an error message otherwise.