Skip to Content

Package Manager

Using package managers like Scoop or Chocolatey on Windows, or Homebrew on Mac, makes software installation and management easier and more efficient.

Table of Contents


For Windows

Option 1: Installing Chocolatey

Chocolatey is a package manager for Windows that allows you to install, update, and manage software from the command line. Follow these steps to install it.

Prerequisites

  • Operating System: Windows 7 or later
  • PowerShell: Version 2 or later
  • .NET Framework: Version 4 or later

Step 1: Open Command Line as Administrator

Press Windows Key + X and select Windows PowerShell (Admin) or Command Prompt (Admin).

If prompted, click Yes to allow.

Step 2: Run the Chocolatey Installation Command

Copy and paste the following command into the terminal and press Enter:

terminal
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

Step 3: Verify the Installation

To check if Chocolatey is installed, run:

terminal
choco --version

You should see the version number displayed, indicating Chocolatey has been successfully installed.


Option 2: Installing Scoop

Scoop is a command-line installer for Windows that makes it easy to install and manage software. Follow these steps to install Scoop.

Prerequisites

  • Operating System: Windows 7 or later
  • PowerShell: Version 3 or later
  • .NET Framework: Version 4.5 or later

Step 1: Open Command Line as Administrator

  • Press Windows Key + X and select Windows PowerShell (Admin) or Command Prompt (Admin).

  • If prompted, click Yes to allow.

Step 2: Allow Script Execution

Run the following command to allow PowerShell scripts to execute:

terminal
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

If asked, type Y and press Enter to confirm.

Step 3: Install Scoop

Copy and paste the following command into PowerShell and press Enter:

terminal
iwr -useb get.scoop.sh | iex

Step 4: Verify the Installation

To check if Scoop is installed, run:

terminal
scoop --version

For Mac

Option 1: Installing Homebrew

Homebrew is a tool that makes it easy to install software on your computer with just a few commands. The Missing Package Manager for macOS (or Linux).

Step 1: Open the Terminal

  • Click on the Spotlight Search (the magnifying glass at the top-right of your screen) or press Command (⌘) + Space.
  • Type Terminal and press Enter. This opens a window where you can type commands.

Step 2: Install Homebrew

  • Copy the following command:

    terminal
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • In the Terminal, paste the command by pressing Command (⌘) + V and then press Enter.

Step 3: Follow the Instructions

  • You’ll see some instructions in the Terminal. It might ask for your password (the one you use to log in to your Mac). Type it in and press Enter. Note: You won’t see your password as you type; this is normal.
  • The installation will take a few minutes.

Step 4: Check if Homebrew Installed Correctly

  • Once the installation is done, check if it worked by typing:

    terminal
    brew --version
  • If you see a version number, that means Homebrew is installed!

Notes

  • Chocolatey requires administrative privileges for installation.
  • If you encounter issues, make sure PowerShell is running as an administrator, and your internet connection is active.
  • Scoop requires PowerShell 3 or later. You can check your version by running powershell -v.
  • Make sure your internet connection is active during installation.

More Information

Last updated on