Package Manager:
Package managers are tools that automate installing, updating, configuring, and removing software packages. Different programming languages and operating systems use different package managers.
Linux Package Managers:
| Type | Manager | Used In |
|---|---|---|
| Debian-based | APT | Ubuntu, Debian |
| Red Hat-based | DNF/YUM | Fedora, RHEL |
| Arch-based | Pacman | Arch, Manjaro |
| SUSE-based | Zypper | openSUSE |
| Universal | Snap, Flatpak | Many distros |
| Source-based | Portage | Gentoo |
Windows Package Managers:
- Chocolatey
choco install pkg # Install a package
choco upgrade pkg # Upgrade a package
choco uninstall pkg # Remove a package
choco list --local # List installed packages
- Winget
winget install pkg # Install a package
winget upgrade pkg # Upgrade a package
winget uninstall pkg # Remove a package
winget search pkg # Search for a package
Programming Language Package Managers:
- NPM (Node.js)
npm install pkg # Install locally
npm install -g pkg # Install globally
npm update # Update dependencies
npm uninstall pkg # Remove a package
- PIP (Python)
pip install pkg # Install a package
pip install --upgrade pkg # Upgrade a package
pip uninstall pkg # Remove a package
pip list # List installed packages
- Maven (Java)
mvn install # Install project dependencies
mvn clean # Clean build files
mvn package # Package project into JAR/WAR
keypoints:
-
System-level managers (APT, YUM, Chocolatey, Winget) → manage OS software.
-
Language-specific managers (NPM, PIP, Maven) → manage libraries and frameworks.
-
Common commands across all: install, update/upgrade, remove/uninstall, search/list.
Install Tomcat 10 in ubuntu 24.04
Tomcat_url: “https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.53/bin/apache-tomcat-10.1.53.tar.gz”
Required_ports: 22,8080, http & https
