How to Use a Windows Package Manager to Install Windows Programs
Tools to automate the entire process
Installing apps manually in Windows can be time-consuming and has several steps, including searching for the most recent version of the app or program, downloading the installer file, signing agreements, pressing Next to get to a subsequent step, and manually unchecking ads, toolbars or bundles you don’t want. Some even require users to close all other running apps during installation.
In this article, we will show you how to use a Windows package manager to install apps and programs using the command prompt.
Chocolatey Package Manager
Windows package managers are a collection of tools that enable users to automate the installation, configuration, and updating of apps and programs.
Chocolatey is a secure and simple Windows package manager. Using a few bits of code, you can install apps and programs as well as manage and track updates.
It is free and open-source for personal and business use. For users who need advanced functionality, Chocolatey offers premium upgrades.
During the installation process, you will see a lot of text scrolling by in the command window.
To install apps, start by opening a text document on your desktop to make a list of the apps you want to install. Next, from a web browser, navigate to Chocolately’s app directory, theCommunity Maintained Packages.
For each app you want to install, type the following command on your text file:
choco install [name of package] -fy
For [name of package] use the name as it appears in the app directory. For example, if you want to install Mozilla Firefox, use the following code:
choco install firefox
The-fypart of the command is a designation that tells Chocolatey to chooseyeswhen any prompt pops up during installation. This helps to automate the process and make it as simple as possible.
Every app you want to install should be on a separate line on your text file. Each line should be the same except for the name of the app.
After listing all the apps you want to include, you can use a single line to install them all at the same time using the following code for the example above:
Save your text tile and close it. It should have a .txt extension. If it doesn’t, you will need to enable File name extensions from File Explorer by following the steps below:
Enable File Extensions
Install Everything Using One Line
It is also possible to install all your apps and the Chocolatey Windows package manager at the same time with one .bat file.
@”%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe” -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command “iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1′))“ && SET “PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin”
choco install firefox -fy
choco install install firefox -fy
choco install adobereader -fy
choco install 7zip.install -fy
choco install notepadplusplus -fy
choco install skype – fy
The above command includes word wrap to make it easier to read. However, when you run the command, it should be one line as you can see below:
Save your file so you can use it again when you need it to install all your favorite apps and Chocolatey at the same time.
Use Chocolatey to install your apps and programs with the command prompt. It has a massive database of Windows packages that go through arigorous review process.
It is an automated tool that handles the mundane and time-consuming steps of getting and installing programs and apps for you. Users simply choose what they want to install, and Chocolatey will download the latest version without needing any input from you.
Consider the situation where you want to upgrade all the programs and apps on your computer to make sure you are using the latest and most secure versions. To do this manually, you must:
Or, use the Chocolatey Windows package manager to open a command line, type:
choco upgrade all -y
Done.
David has a background in small business and lives in Australia. He is a WordPress and Ubuntu Developer who enjoys design, CSS and tech tool integration.Read David’s Full Bio
Welcome to Help Desk Geek- a blog full of tech tips from trusted tech experts. We have thousands of articles and guides to help you troubleshoot any issue. Our articles have been read over 150 million times since we launched in 2008.
HomeAbout UsEditorial StandardsContact UsTerms of Use
Copyright © 2008-2024 Help Desk Geek.com, LLC All Rights Reserved