Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I downgrade a Chocolatey package?

Tags:

chocolatey

I have virtualbox 4.3.28 installed. I'd like to downgrade to virtualbox 4.3.26 Is it possible to downgrade without uninstalling/reinstalling?

like image 818
Eric Francis Avatar asked Jul 06 '15 20:07

Eric Francis


People also ask

How do I uninstall Choco packages?

📝 NOTE A package with a failing uninstall can be removed with the -n --skipautouninstaller flags. This will remove the package from chocolatey without attempting to uninstall the program.

How do you install Chocolatey Nupkg?

Install downloaded NuGet package from PowerShell Download the Chocolatey package. Ensure the downloaded nupkg is not blocked. Unzip it using any application that supports zip format. Open a PowerShell command shell and navigate into the unzipped package's tools folder.


1 Answers

In most cases you will likely want to perform an uninstall and then an install.

> choco uninstall virtualbox > choco install virtualbox --version 4.3.26 

In almost all cases, the question is not whether Chocolatey will support it, but whether the underlying software supports a downgrade. With respect to MSIs, they don't always support downgrades (it's configurable by the author). For other installers like NSIS, InstallShield, or InnoSetup, it may not support it at all. So it's best to usually follow the practice of uninstall/reinstall to run into the least amount of issues.

If you know what you are doing and know the underlying software will support it you can try to force an install to a lower version:

> choco install virtualbox --version 4.3.26 --force 

You may also need to pass --allow-downgrade as part of the options for forcing the install of a lower version.

like image 118
Eric Francis Avatar answered Sep 24 '22 21:09

Eric Francis