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"
}
| Language | Package Manager |
|---|---|
| JavaScript | npm / pnpm |
| Python | pip / poetry |
| Rust | cargo |
| Go | go modules |
| PHP | composer |
| Java | maven / gradle |