ChocoPM.Services.LocalChocolateyService.UpdatePackageAsync C# (CSharp) Method

UpdatePackageAsync() public method

Updates the installed package.
Chocolatey does not currently support updating an installed package to a specific version. There's a way to do this (basically uninstall and install specific version), but it's complex and error prone enough that we're avoiding it for now.
public UpdatePackageAsync ( string id ) : Task
id string The Id of the package.
return Task
        public async Task<bool> UpdatePackageAsync(string id)
        {
            return await ExecutePackageCommand("chocolatey update " + id);
        }