# Package Management

> Managing software packages, repositories, and dependencies in different Linux distributions

- **Canonical URL:** https://flashcards.world/flashcards/sets/29325f23-0d52-4251-b8cd-8a55501ead65/
- **Markdown URL:** https://flashcards.world/flashcards/sets/29325f23-0d52-4251-b8cd-8a55501ead65.md
- **Category:** Linux
- **Level:** basic
- **Languages:** en → en
- **Total Cards:** 50

## Flashcards (50 Cards)

| # | Front (Term / Prompt) | Back (Definition / Answer) | Example | Multiple-Choice Options |
| :--- | :--- | :--- | :--- | :--- |
| 1 | What is the significance of the 'dependencies' section in a package's metadata? | The 'dependencies' section specifies other packages that must be installed for the package to function correctly. |  |  |
| 2 | What is the role of the 'yum repository'? | A YUM repository is a collection of RPM packages and metadata used by the YUM package manager. |  |  |
| 3 | What does the 'apt show <package-name>' command do? | The 'apt show <package-name>' command displays detailed information about a specific package. |  |  |
| 4 | What is the difference between a source package and a binary package? | A source package contains the source code and instructions for building the software, while a binary package contains the compiled software ready for installation. |  |  |
| 5 | What is the RPM package manager used for? | RPM (Red Hat Package Manager) is used for managing packages in RPM-based distributions like Red Hat and Fedora. |  |  |
| 6 | What is a virtual package? | A virtual package is a package that does not exist as a physical package but is provided by one or more actual packages. |  |  |
| 7 | What command is used to install an RPM package? | The command is 'rpm -i <package-file.rpm>'. |  |  |
| 8 | What is a package manifest? | A package manifest is a file that lists the files included in a package and their locations. |  |  |
| 9 | What is a rollback in package management? | A rollback is the process of reverting to a previous version of a package or system state. |  |  |
| 10 | What is a package maintainer script? | A package maintainer script is a script that runs during the installation, upgrade, or removal of a package to perform specific tasks. |  |  |
| 11 | What is the command to check for broken packages using APT? | The command is 'apt check'. |  |  |
| 12 | What is the command to check installed packages using APT? | The command is 'apt list --installed'. |  |  |
| 13 | What is a package in the context of package management? | A package is a compressed file containing software and metadata that describes the software's dependencies and installation instructions. |  |  |
| 14 | What is the command to remove a package using APT? | The command is 'apt remove <package-name>'. |  |  |
| 15 | What is the difference between 'apt upgrade' and 'apt dist-upgrade'? | 'apt upgrade' upgrades installed packages without removing any, while 'apt dist-upgrade' may remove packages to resolve dependencies. |  |  |
| 16 | What is the command to search for a package using APT? | The command is 'apt search <package-name>'. |  |  |
| 17 | What does the command 'yum install <package-name>' do? | The command installs a specified package using the YUM package manager on RPM-based systems. |  |  |
| 18 | What is the significance of the 'changelog' file in a package? | The 'changelog' file provides a log of changes made to the package in each version. |  |  |
| 19 | What is the command to view the history of transactions in DNF? | The command is 'dnf history'. |  |  |
| 20 | What is the difference between 'apt' and 'apt-get'? | 'apt' is a newer, user-friendly command-line interface for package management, while 'apt-get' is the older, more script-oriented tool. |  |  |
| 21 | What is the purpose of a package manager? | A package manager automates the process of installing, upgrading, configuring, and removing software packages. |  |  |
| 22 | What is the purpose of the 'dnf' package manager? | DNF (Dandified YUM) is a modern package manager for RPM-based systems that improves dependency resolution and performance. |  |  |
| 23 | What is a package conflict? | A package conflict occurs when two packages cannot be installed simultaneously due to incompatible files or dependencies. |  |  |
| 24 | What is the purpose of the 'apt-key' command? | The 'apt-key' command is used to manage the list of trusted keys for verifying package signatures. |  |  |
| 25 | What is the purpose of the 'snap' package manager? | The 'snap' package manager is used to install and manage snap packages, which are containerized software packages. |  |  |
| 26 | What is the purpose of the 'dpkg' command? | The 'dpkg' command is a low-level package manager for Debian-based systems that installs, removes, and manages .deb packages. |  |  |
| 27 | What is a repository in package management? | A repository is a storage location from which software packages can be retrieved and installed. |  |  |
| 28 | What is the function of the 'apt update' command? | The 'apt update' command updates the local package index with the latest information from the repositories. |  |  |
| 29 | What is the command to list all available repositories in Ubuntu? | The command is 'apt policy'. |  |  |
| 30 | What does the command 'apt full-upgrade' do? | The 'apt full-upgrade' command upgrades packages and resolves dependencies, potentially removing conflicting packages. |  |  |
| 31 | What is the command to clean up cached packages in APT? | The command is 'apt clean'. |  |  |
| 32 | What is a PPA in the context of Ubuntu? | A PPA (Personal Package Archive) is a repository hosted on Launchpad that allows users to upload and share software packages. |  |  |
| 33 | What are the two main types of package management systems? | The two main types are: 1) RPM-based systems (e.g., Red Hat, Fedora) and 2) DEB-based systems (e.g., Debian, Ubuntu). |  |  |
| 34 | What is the purpose of the 'apt-cache' command? | The 'apt-cache' command is used to query the APT cache for information about available packages. |  |  |
| 35 | What is a containerized package? | A containerized package includes all dependencies and libraries needed to run the software, isolated from the host system. |  |  |
| 36 | What does the command 'apt autoremove' do? | The 'apt autoremove' command removes packages that were automatically installed to satisfy dependencies but are no longer needed. |  |  |
| 37 | What is a package group? | A package group is a collection of related packages that can be installed together as a single unit. |  |  |
| 38 | What is the command to list all installed packages using RPM? | The command is 'rpm -qa'. |  |  |
| 39 | What is the purpose of the 'flatpak' package manager? | Flatpak is used to install and manage applications in a sandboxed environment, ensuring compatibility across different Linux distributions. |  |  |
| 40 | What is the command to update all packages using DNF? | The command is 'dnf upgrade'. |  |  |
| 41 | What is the purpose of the 'dpkg-reconfigure' command? | The 'dpkg-reconfigure' command allows users to reconfigure an already installed package. |  |  |
| 42 | What is the command to install a Flatpak application? | The command is 'flatpak install <remote> <application>'. |  |  |
| 43 | What is the purpose of the 'snap list' command? | The 'snap list' command displays all installed snap packages on the system. |  |  |
| 44 | What is package management? | Package management is the process of installing, upgrading, configuring, and removing software packages in a consistent manner. |  |  |
| 45 | What is the purpose of a lock file in package management? | A lock file prevents multiple package management processes from running simultaneously, avoiding conflicts. |  |  |
| 46 | What is the command to remove a snap package? | The command is 'snap remove <package-name>'. |  |  |
| 47 | Name a popular package manager for Debian-based systems. | APT (Advanced Package Tool) is a popular package manager for Debian-based systems. |  |  |
| 48 | What is a package signature? | A package signature is a cryptographic signature that verifies the authenticity and integrity of a package. |  |  |
| 49 | What is a dependency in package management? | A dependency is a software requirement that must be met for a package to function correctly. |  |  |
| 50 | What command is used to install a package using APT? | The command is 'apt install <package-name>'. |  |  |

---
Study this deck interactively with FSRS-6 spaced repetition, audio review, and multiple-choice mode at [Flashcards World](https://flashcards.world/flashcards/sets/29325f23-0d52-4251-b8cd-8a55501ead65/).
