Package Management

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

Category
Linux
Level
basic
Languages
en → en
Cards
50
Markdown
Package Management (.md)

Flashcards (50)

#Front (Term / Question)Back (Definition / Answer)ExampleMultiple-Choice Options
1What 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.
2What is the role of the 'yum repository'?A YUM repository is a collection of RPM packages and metadata used by the YUM package manager.
3What does the 'apt show <package-name>' command do?The 'apt show <package-name>' command displays detailed information about a specific package.
4What 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.
5What 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.
6What 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.
7What command is used to install an RPM package?The command is 'rpm -i <package-file.rpm>'.
8What is a package manifest?A package manifest is a file that lists the files included in a package and their locations.
9What is a rollback in package management?A rollback is the process of reverting to a previous version of a package or system state.
10What 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.
11What is the command to check for broken packages using APT?The command is 'apt check'.
12What is the command to check installed packages using APT?The command is 'apt list --installed'.
13What 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.
14What is the command to remove a package using APT?The command is 'apt remove <package-name>'.
15What 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.
16What is the command to search for a package using APT?The command is 'apt search <package-name>'.
17What does the command 'yum install <package-name>' do?The command installs a specified package using the YUM package manager on RPM-based systems.
18What 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.
19What is the command to view the history of transactions in DNF?The command is 'dnf history'.
20What 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.
21What is the purpose of a package manager?A package manager automates the process of installing, upgrading, configuring, and removing software packages.
22What 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.
23What is a package conflict?A package conflict occurs when two packages cannot be installed simultaneously due to incompatible files or dependencies.
24What 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.
25What 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.
26What 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.
27What is a repository in package management?A repository is a storage location from which software packages can be retrieved and installed.
28What is the function of the 'apt update' command?The 'apt update' command updates the local package index with the latest information from the repositories.
29What is the command to list all available repositories in Ubuntu?The command is 'apt policy'.
30What does the command 'apt full-upgrade' do?The 'apt full-upgrade' command upgrades packages and resolves dependencies, potentially removing conflicting packages.
31What is the command to clean up cached packages in APT?The command is 'apt clean'.
32What 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.
33What 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).
34What is the purpose of the 'apt-cache' command?The 'apt-cache' command is used to query the APT cache for information about available packages.
35What is a containerized package?A containerized package includes all dependencies and libraries needed to run the software, isolated from the host system.
36What does the command 'apt autoremove' do?The 'apt autoremove' command removes packages that were automatically installed to satisfy dependencies but are no longer needed.
37What is a package group?A package group is a collection of related packages that can be installed together as a single unit.
38What is the command to list all installed packages using RPM?The command is 'rpm -qa'.
39What 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.
40What is the command to update all packages using DNF?The command is 'dnf upgrade'.
41What is the purpose of the 'dpkg-reconfigure' command?The 'dpkg-reconfigure' command allows users to reconfigure an already installed package.
42What is the command to install a Flatpak application?The command is 'flatpak install <remote> <application>'.
43What is the purpose of the 'snap list' command?The 'snap list' command displays all installed snap packages on the system.
44What is package management?Package management is the process of installing, upgrading, configuring, and removing software packages in a consistent manner.
45What is the purpose of a lock file in package management?A lock file prevents multiple package management processes from running simultaneously, avoiding conflicts.
46What is the command to remove a snap package?The command is 'snap remove <package-name>'.
47Name a popular package manager for Debian-based systems.APT (Advanced Package Tool) is a popular package manager for Debian-based systems.
48What is a package signature?A package signature is a cryptographic signature that verifies the authenticity and integrity of a package.
49What is a dependency in package management?A dependency is a software requirement that must be met for a package to function correctly.
50What command is used to install a package using APT?The command is 'apt install <package-name>'.