What Is a Package Manager?

A software tool that automates the installation, updating, configuration, and removal of reusable code libraries (called packages).

What Is a Package?

A reusable piece of software bundled with metadata (name, version, dependencies, scripts).

1. Dependency

A package that your project requires to function. Example:
If app uses React:

"dependencies": {
  "react": "^18.2.0"
}
LanguagePackage Manager
JavaScriptnpm / pnpm
Pythonpip / poetry
Rustcargo
Gogo modules
PHPcomposer
Javamaven / gradle