Understanding Package Manager

Hello, I am sumit and currently pursing my final year of graduation with IT stream from JSPM BSIOTR Wagholi Pune. I am currently learning DevOps with TrainWIthShubham. I have prior knowledge of Java, JSP, Servlet, SQL and Data structure also.I am a hard worker, smart and quick learner.
What is a package manager in Linux?
In simpler words, a package manager is a tool that allows users to install, remove, upgrade, configure and manage software packages on an operating system. The package manager can be a graphical application like a software center or a command lines tool like apt-get or Pacman.
You’ll often find me using the term ‘package’ in tutorials and articles, To understand package manager, you must understand what a package is.
What is a package?
A package is usually referred to an application but it could be a GUI application, command line tool or a software library (required by other software programs). A package is essentially an archive file containing the binary executable, configuration file and sometimes information about the dependencies.
Different types:
APT (Advanced Package Tool): APT is a package manager commonly used in Debian-based Linux distributions. It simplifies software installation, upgrade, and removal by resolving dependencies automatically.
npm (Node Package Manager): Npm is specifically designed for JavaScript development. It is the default package manager for Node.js and is widely used for managing JavaScript libraries and tools.
pip: Pip is the package manager for Python. It simplifies the installation and management of Python packages, making it a crucial tool for Python developers.
Docker: Docker is a containerization platform that includes its own package manager for container images. It simplifies the packaging and distribution of applications, making them portable across different environments.
Package Manager Commands:
APT (Advanced Package Tool):
Update package list:
sudo apt updateInstall a package:
sudo apt install package_nameRemove a package:
sudo apt remove package_nameSearch for a package:
apt search package_name
npm (Node Package Manager):
Install a package locally:
npm install package_nameInstall a package globally:
npm install -g package_nameUpdate a package:
npm update package_nameSearch for a package:
npm search package_name
pip (Python Package Manager):
Install a Python package:
pip install package_nameUpgrade a Python package:
pip install --upgrade package_nameUninstall a Python package:
pip uninstall package_nameSearch for a package:
pip search package_name
Docker:
Pull a Docker image:
docker pull image_nameRun a Docker container:
docker run container_nameBuild a Docker image:
docker build -t image_name .List Docker containers:
docker ps




