Mastering Dependencies & Updates with Windows Package Manager

Mastering Dependencies & Updates with Windows Package Manager

David Lv13

Mastering Dependencies & Updates with Windows Package Manager

As Windows has developed over the years, we’ve seen Microsoft introduce some of Linux’s functionality into the Windows ecosystem. In addition to Windows 10 and 11 supporting a Linux subsystem through WSL 2, they also feature a package manager called the Windows Package Manager (or winget for short).

So what exactly is the Windows Package Manager, and how do you use it? Read on as we answer all of your burning questions below.

Disclaimer: This post includes affiliate links

If you click on a link and make a purchase, I may receive a commission at no extra cost to you.

What Is a Package Manager?

All modern apps and any projects that you build will utilize existing frameworks, libraries, and tools. If you’re building a simple React app, you’re going to require Node.js, ReactJS, and other libraries or tools for your project to function correctly. The underlying third-party software that essentially helps your project function is called dependencies.

As you can imagine, managing the installation and updation of multiple dependencies within a project can become quite frustrating. You also need to make sure that your system is compatible with third-party software. If you were to integrate and update each third-party software manually, you’d be wasting a good chunk of your valuable time managing the software dependencies.

To solve this problem (among others), developers came up with the ingenious idea of a package manager—a single tool that can manage all your project dependencies. Package managers typically perform several essential features such as:

  • Finding the correct source files for your platform.
  • Ensuring source files are free of malware and other security vulnerabilities.
  • Integrating dependencies into your project.
  • Allowing seamless installation, updation, and removal of software dependencies.

Package managers also have a vast catalog of tools you can choose from and install with just a single command on the terminal.

Some examples of popular package managers include:

  • Homebrew.
  • Node Package Manager (NPM).
  • Yarn.
  • Advanced Packaging Tool (APT).

What Is the Windows Package Manager?

The Windows Package Manager, or winget as it is commonly referred to, is Microsoft’s version of a Linux-style package manager. Winget was released in 2020 as an open-source command-line utility package manager and contains a wide range of available applications for users to install from. Like other widely used package managers, Microsoft has made sure that the Windows Package Manager is free and available on GitHub.

remove reinstall microsoft store windows 11

By using the Windows Package Manager, you can easily install, update, and delete applications with just a single command in the terminal. Say goodbye to the days of downloading setup files and manually installing each application.

Winget utilizes a YAML package manifest format that makes it easy to understand and configure. Developers typically use the YAML manifest format to bundle their applications to be compatible with the Windows Package Manager.

Previously, Windows users had to rely on Chocolatey—a third-party package manager specialized for Windows OS. Chocolatey is quite powerful and widely adopted by the larger Windows fraternity. On the other hand, most Windows users are not familiar or comfortable with the Windows Package Manager yet; we hope this guide will help change that.

How to Set Up Windows Package Manager on Windows 11

The Windows Package Manager does not come pre-installed on Windows, so you’ll have to download it manually. Fortunately, the installation process is straightforward and shouldn’t pose any hurdles.

Microsoft requires your Windows system to run Windows 10 1709 or later to use winget. You will also have tolog in using your Microsoft Account and ensure you’re logged in on the Microsoft Store app as well.

There are two main ways of installing the Windows Package Manager on Windows 11.

How to Install Winget Using the Microsoft Store

The easiest way to install the Windows Package Manager is through the Microsoft Store. You can download the Windows Package Manager through Microsoft’s official App Installer to do so:

  1. Launch theMicrosoft Store using theStart menu .
  2. Search forApp Installer and select the best match.
    app installer win11
  3. Click on theInstall button if you see it. Otherwise,App Installer already exists on your PC, and you will just have to make sure it’s updated.
https://techidaily.com https://techidaily.com

How to Install Winget Through PowerShell

If you’re having issues in the Microsoft Store, you should consider installing winget using Windows PowerShell. Once you’ve connected to the internet, follow the below steps:

  1. From theStart menu, search forPowerShell , and selectRun as administrator .
  2. In the command line, paste the below command and pressEnter
    Invoke-WebRequest -Uri https://aka.ms/winget -OutFile winget.zip; Expand-Archive winget.zip -DestinationPath $Env:ProgramFiles\WindowsPowerShell\Modules\
  3. Once the installation is completed, type the following command and pressEnter to verify your installation.

How to Use Winget on Windows 11

Now that you’ve set up winget, you’ll have to learn how to use commands associated with the winget tool, including downloading, config configuring, and viewing installed applications.

https://techidaily.com

1. How to Download New Applications

There’s a vast range of available applications within winget, and you can download apps such as Google Chrome, 7-Zip, etc.

To download an application using winget, use the following command:

winget install <APP_NAME>

2. How to Browse for Applications

If you’re looking for a new app to install but don’t know how to browse the available apps, you can use the search feature of winget. One method is to use the search command of winget within the command line. Enter a search query with the below command, and you’ll get a list of available apps that satisfy your search criteria.

winget search

For example, to search for zipping programs, you can type:

winget search zip

Alternatively, you can use athird-party tool that provides an easy-to-use user interface for winget.

3. How to View Installed Applications

You can view applications that have been installed on your PC through:

winget list

https://techidaily.com

4. How to View Application Details

winget show

https://techidaily.com

To look into the installation details and software version of a specific app, you can use the following command:

winget show <APP_NAME>

Are Package Managers Worth the Hassle on Windows?

Winget is incredible at installing applications on your Windows 11 PC. You no longer need to hunt for malware-free download links on the internet; simply open up a terminal and download the application you need via winget.

Also read:

  • Title: Mastering Dependencies & Updates with Windows Package Manager
  • Author: David
  • Created at : 2024-10-20 05:15:00
  • Updated at : 2024-10-20 18:53:40
  • Link: https://win11.techidaily.com/mastering-dependencies-and-updates-with-windows-package-manager/
  • License: This work is licensed under CC BY-NC-SA 4.0.