CompTIA Linux+ Linux Installation and Package Management Flashcards
5 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 5 CompTIA Linux+ Linux Installation and Package Management flashcards as text
Which of the following commands is used to install a package on a system using the YUM package manager?
Answer: yum install [package_name]
The `yum install [package_name]` command is used to install new software packages on systems that use the YUM (Yellowdog Updater, Modified) package manager, such as CentOS or Fedora. YUM automatically resolves dependencies and fetches the necessary files from configured repositories. This command is fundamental for software management on RPM-based distributions.
Which of the following commands is used to update the package database in an APT-based system (Debian/Ubuntu)?
Answer: apt-get update
The `apt-get update` command is used in APT-based systems (like Debian and Ubuntu) to refresh the local package index. It downloads the latest package information from all configured repositories, allowing the system to know which packages are available for installation or upgrade. This step is crucial before installing or upgrading any software to ensure you have access to the most current versions.
Which file in a Linux system contains information about the system’s disk partitions?
Answer: /etc/fstab
The `/etc/fstab` file (file system table) contains static information about the file systems that are mounted on the system. It specifies how and where disk partitions, network shares, and other storage devices should be mounted during the boot process. This file is essential for ensuring that all necessary file systems are available when the system starts.
What does the dpkg command do in a Debian-based system?
Answer: It installs, removes, or provides information about .deb packages.
The `dpkg` command is the low-level package manager for Debian-based systems, directly handling `.deb` package files. It can install, remove, configure, and query information about individual packages. While `apt` commands manage repositories and dependencies, `dpkg` is the underlying tool that performs the actual package manipulation.
Which of the following commands is used to check disk usage in Linux?
Answer: du
The `du` command (disk usage) is used to estimate file space usage by files and directories. It recursively calculates the disk space consumed by a specified directory or file, providing detailed information about how much space individual items are taking up. This is useful for identifying large files or directories that might be consuming excessive disk space.