Linux and Command-Line Basics

Which of the following is the main function of a Linux package management system (apt on Debian-based systems, dnf on Red Hat-based systems and so on)?

  1. ABundling several files and directories into one compressed file so that they are easy to send to another computer
  2. BAlways compiling the source code of the software on the spot and optimizing it for the CPU in use before installing it
  3. CFetching software from repositories and managing installation, updates and removal, including the packages it depends on
Show answer and explanation

Answer: C. Fetching software from repositories and managing installation, updates and removal, including the packages it depends on

A package management system handles software in units called packages, fetches them from distribution servers (repositories), and installs, updates and removes them. It automatically finds the other packages that a package needs in order to work (its dependencies) and installs them together, and it records the list of installed files so that removal and updates are clean. Installing into the system with apt or dnf generally requires root privileges, so they are run with sudo. Some software, such as commercial EDA tools, is installed with its own installer without going through the package management system.

  • A. Bundling and compressing files is the job of tar, gzip, zip and the like.
  • B. Packages installed with apt or dnf are usually precompiled and are not compiled on the spot.
  • C. Correct. It manages installation, updates and removal, including dependencies.
Practice this topic Back to topic

Books on Linux and Command-Line Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Linux and Command-Line Basics questions

  1. On a Linux system using systemd, which of the following is the difference between "systemctl start license.service" and "systemctl enable license.service" for the service license.service?
  2. The line "30 2 * * 1 /home/alice/backup.sh" was registered in cron. Which of the following is when backup.sh is run?
  3. A Linux server warns that disk space is running low. Which of the following is the correct pair of a command to check usage and free space for each file system and a command to total the space used by the files in a directory?
  4. You created a public-key authentication key pair with ssh-keygen on your own PC and want to connect to the server server1 with ssh without a password. Which of the following is the correct way to place the keys?
  5. Which of the following is what happens when "tar -czf proj.tar.gz proj/" is run?