> For the complete documentation index, see [llms.txt](https://cybersecurity-cloud-and-it-notes.gitbook.io/kyles-cybersecurity-cloud-and-it-gitbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cybersecurity-cloud-and-it-notes.gitbook.io/kyles-cybersecurity-cloud-and-it-gitbook/google-cybersecurity-professional-cert/4.-linux-and-sql-tool-of-the-trade/module-2/linux-distributions/reading-package-managers-for-installing-applications.md).

# Reading, Package Managers for installing applications

Let’s break down **package managers** in a fun and ADHD-friendly way, using analogies that are easy to understand. Ready to dive in? Let’s imagine package managers like a **delivery service for software**!

***

#### 🎁 **What’s a Package?**

* **Packages** are like **software bundles** 🎁. Think of them as little boxes of code that you need to install to get an app running on your Linux system. Sometimes, a package can be its own app (like a **big gift box** 🎉), and sometimes it’s just a part of an app (like **batteries included** 🔋).
* **Dependencies** are the extra pieces (batteries, instructions, parts) that some packages need to work properly. The **package manager** is there to help make sure you have everything you need! 🛠️

***

#### 🛍️ **What’s a Package Manager?**

* A **package manager** is like your personal **shopping assistant** for software! 🛒 They help you:
  * **Find** the package you want.
  * **Install** it neatly into your system.
  * **Remove** it if you don’t need it anymore.
  * Handle any **dependencies** so everything works smoothly.
* It’s important to keep your packages **up-to-date**, like always getting the latest version of your favorite app, because updates come with important **bug fixes** and **security patches** 🔒.

***

#### 🔧 **Types of Package Managers**

* Different **Linux distributions** have different package managers. It’s like different stores use different apps for shopping. Let’s meet two popular types:

***

#### 🟢 **Debian-Based Distributions** (like Ubuntu, Kali, and Parrot)

* These distributions use the **dpkg package manager**. The packages have a **.deb** file extension, like **Package\_Version.deb**.
* A tool called **APT (Advanced Package Tool)** helps you easily install, update, and manage packages from the **command line** 🖥️.
  * APT is your friendly **personal assistant**—just tell it what you want, and it does the heavy lifting for you. 🚚
  * **Example command**: `sudo apt install <package>`.

***

#### 🔴 **Red Hat-Based Distributions** (like CentOS and Red Hat)

* These distributions use **RPM (Red Hat Package Manager)**. The packages have a **.rpm** file extension, like **Package-Version.rpm**.
* **YUM (Yellowdog Updater Modified)** is a tool you use in the **command line** to install and manage these packages 📦. YUM makes life easier by doing all the complex stuff behind the scenes!
  * **Example command**: `sudo yum install <package>`.
  * YUM is like your **tech-savvy friend** who knows exactly where to find the right tools.

***

#### 🚀 **Key Takeaways:**

* **Packages** = Software bundles, some are apps, others are parts of apps.
* **Package managers** = Your personal assistant for finding, installing, updating, and removing packages.
* **APT** is the tool for **Debian-based distros**, while **YUM** is for **Red Hat-based distros**.
* **Keep your packages up-to-date** for better security and functionality! 🔐

***

Now, next time you install an app in Linux, think of it like placing an order with your **personal software assistant**. Whether you’re using APT or YUM, you’ve got the tools to keep your system running smoothly! 🎉
