How to Install a Specific Version of Software Package using Chocolatey via CMD?
Last Updated :
25 Sep, 2024
To guarantee compatibility with your projects or system configuration, you may need to use Chocolatey to install a specific version of the software while managing the installation. Software packages can be effectively managed from the command line with Chocolatey, a potent package management tool. To provide you exact control over the versions you require, we'll walk you through the process of installing a particular software package using Chocolatey via CMD in this tutorial.
Install a Specific Version of Software Package using Chocolatey via CMD
Step 1: Opening the Command Prompt on Windows
Click on the Search Menu on the Windows taskbar then search cmd or command prompt.
Step 2: CMD in the search bar
Type "cmd" in the search and r, and the Command Prompt (CMD) will be displayed on the Search Menu.
Step 3: Open Command Prompt as administrator
Click on the run as administrator tab and open the Command Prompt (CMD) along with administrative power.
Step 4: Installation
Run the following code in the Command Prompt to install the package:
choco install <package-name> --version <version-number>
You have to replace "<package-name> with the name of the software package you want to install and replace "<version-number>" with the desired version you want to install and use.
Example: For installing Node.js version 14.170, we will run the following command:
choco install nodejs --version 14.17.0
Here "<package-name>" is replaced by "node.js" and "<version-number>" is replaced by "14.17.0".
Important note: Not all versions of the software package might be available through chocolatey for use. To check the available versions you can run the following code:
choco search <package-name> --exact --verbose
You have to replace "<package-name>" according to the software package you want to install and use.
This will give all the available software versions available through Chocolatey. (Nodejs versions from the example case)
Conclusion
Software installs across various contexts can be managed with flexibility when using Chocolatey to install a particular version of a package. You can make sure that the right tools are always installed on your machine by learning how to specify versions with the Chocolatey command line. Chocolatey streamlines and expedites the process of installing certain versions via CMD, whether you need an older version or want to use a different one.
Similar Reads
How to Install apt-show-versions package on Ubuntu? If you are using any Linux Distributions like Ubuntu OS, you should know the process to Manage & Verify Installed Packages there. And for that purpose, the Apt-Show-Versions Package on Ubuntu will be the best. With the Ubuntu Apt-Show-Versions Package, you can list down the Ubuntu Packages prese
4 min read
How to Install Chocolatey Package Manager on Windows? Chocolatey is a package manager for Windows that gives you a command-line approach to install, update, and remove software. It makes managing software on a Windows PC easy and saves you time and effort. In this article, we will show you how to install the Chocolatey package manager on Windows 11. Pr
3 min read
How to Install Git on Windows Using Chocolatey? Installing Git on Windows can be a simple process, especially with the help of package managers like Chocolatey. Chocolatey is a package manager for Windows that automates the installation, upgrade, and uninstallation of software. This article will guide you through the steps to install Git on Windo
2 min read
How to Install Docker using Chocolatey on Windows? Installing Docker in Windows with just the CLI is quite easier than you would expect. It just requires a few commands. This article assumes you have chocolatey installed on your respective windows machine. If not, you can install chocolatey from here. Chocolatey is a package manager for the Windows
4 min read
How to Install Software via CMD Installing software on your computer usually means clicking through a setup wizard, but did you know you can do it faster with just a few typed commands? Using the Command Prompt (CMD) in Windows, you can install programs without all the mouse clicks, making it a handy trick for quick setups or mana
4 min read