Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Open In App
Next Article:
How to Install and Use Packages in Visual Studio for MacOS?
Next article icon

How to Install a Specific Version of Software Package using Chocolatey via CMD?

Last Updated : 25 Sep, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

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.

Table of Content

  • Install a Specific Version of Software Package using Chocolatey via CMD
    • Step 1: Opening the Command Prompt on Windows
    • Step 2: CMD in the search bar
    • Step 3: Open Command Prompt as administrator
    • Step 4: Installation
  • Install a Specific Version of Software Package using Chocolatey via CMD - FAQs.

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.

Screenshot-2024-06-04-101403-(1)

Step 3: Open Command Prompt as administrator

Click on the run as administrator tab and open the Command Prompt (CMD) along with administrative power.

Screenshot-2024-06-04-101451

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".

Screenshot-2024-06-04-175411

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.

Screenshot-2024-06-04-175948

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.


Next Article
How to Install and Use Packages in Visual Studio for MacOS?

A

amitanshjqm0m
Improve
Article Tags :
  • TechTips
  • How To
  • Command Prompt

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 and Use Packages in Visual Studio for MacOS?
    In this article, we will learn how to install and use a package in Visual Studio for MacOS. Visual Studio is an Integrated Development Environment(IDE) developed by Microsoft to develop GUI(Graphical User Interface), console, Web applications, web apps, mobile apps, cloud, web services, etc. Native
    2 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
  • How to Download Python Old Version and Install
    Python is a popular programming language known for its simplicity and versatility. When we install Python in our systems we always install the latest version of it but there may be situations where we need to install an older version of Python due to compatibility reasons or to work on legacy projec
    2 min read
  • How to Automatically Install Required Packages From a Python Script?
    When working in python having to use libraries you don't know or using a new pc, it is a hectic job to install all the libraries one by one. Each time you have to find out the name of the library and install it one by one. But if we know libraries like pipreqs which automatically installs all the re
    2 min read
  • How to Install and Configure Synaptic Package Manager in Ubuntu?
    Synaptic Package Manager is a GUI based package management tool that uses APT (Advanced Package Tool) to installing, updating or removing packages from the Linux system. Some of the feature given by Synaptic Package Manager are: Allow installing, updating or removing packagesUpgrading whole systemSe
    1 min read
  • How to Download and Install Scala packages into Anaconda?
    Scala is an object-oriented highly scalable language. Using it with Anaconda gives ease of working in a desirable environment. Similar to installing TensorFlow, we can download Scala into Anaconda and use it with tools like Jupyter Notebook. For using Scala in Anaconda we need the following, Java JD
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences