# Package Manager

> A tool that fetches and updates the code packages your project needs.

**Field:** Software Development  
**Category:** Editors & Tools

## Think of it like

Think of it like an app store for code. You ask for a package by name, and it fetches and installs it.

## Definition

A package manager fetches, installs and updates the code your project needs. You type one command with a package's name, and it fetches the right version. It also fetches everything that package needs in turn. It writes down what it installed, so a teammate can get the exact same set. Most languages have their own, like npm for JavaScript and pip for Python.

## Example

Emma joins a team and clones its project. One install command fetches all 240 packages the project lists.

## Example code

```console
$ npm install lodash

added 1 package, and audited 2 packages in 668ms

found 0 vulnerabilities
```

One command fetches the package and records it in the project file.

## Why it matters

Without one, you would copy code by hand. You would track each version on your own too.

## Common mistake

Not saving the lock file it writes. Then teammates install slightly different versions and get odd bugs.

## Three principles

- **One command.** Ask by name, get the package.
- **Brings what it needs.** Dependencies of dependencies come too.
- **Same set for all.** A lock file pins every version.

## Related terms

- [Dependency](https://learn.benibix.com/term/development/dependency)
- [npm](https://learn.benibix.com/term/development/npm)
- [pip](https://learn.benibix.com/term/development/pip)
- [Software Library](https://learn.benibix.com/term/development/library)
- [Linux Distribution](https://learn.benibix.com/term/development/linux-distribution)
- [Package Registry](https://learn.benibix.com/term/development/package-registry)
- [Lockfile](https://learn.benibix.com/term/development/lockfile)

## Told apart from

- [Package Registry vs Package Manager](https://learn.benibix.com/compare/package-registry-vs-package-manager): People think the package manager and the package registry are one thing, since both are often called npm. They are not. The registry is the website that stores the packages. The package manager is the tool on your computer that downloads them and puts them in your project.

## Taught in

- [Package Managers, npm and pip](https://learn.benibix.com/learn/development-tools/package-managers-npm-and-pip): Coding Tools, 8/13
- [Linux Distros, Ubuntu and WSL](https://learn.benibix.com/learn/development-platforms/linux-distros-ubuntu-and-wsl): OS and Files, 4/10

---

Source: https://learn.benibix.com/term/development/package-manager
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
