Factor-packman:pkg-update
From Zen/-/ackers
The pkg-update command is used to update / downgrade a package to a specific version.
The pkg-update word has the following signature:
pkg-update ( pkg-name seq -- )
:: pkg-name: the name of the package to update as a string. :: seq: a sequence (list) of options to be used by the pkg-update word.
This command updates all installed packages if no pkg-name is supplied. If a package name is supplied, this command updates only that specific local package. If the local package is not installed yet, this command prompts the user and asks if he/she would like to install the package (then this essentially becomes a pkg-install operation).
If we use a remote repo to update a package, the package is downloaded to the local cache. Then the existing package is archived and the new package version is installed. This allows us to roll-back the update operation for a package.
This command can be used to update a package to any specific version. This means I can use the pkg-update command to update / downgrade a package to any available version.
The user can also download the package manually and use this command to update an existing package to the newly downloaded package's version.

