Study Guide - Chap13: Governing Software Flashcards

(6 cards)

1
Q

3- Sherri is trying to compile an application from source code. Before she can create the application executable file, what script should she run to create the make script?

  • make
  • make install
  • configure
  • gcc
  • dpkg
A

configure

The configure tool assesses your Linux system to ensure that any dependencies are met and that the proper compiler tools are installed and then builds the make script, so option C is correct. The make script along with the install option runs the make script but doesn’t create it, so options A and B are incorrect. The gcc program compiles the source code and library files but doesn’t create the make script, so option D is incorrect. The dpkg installs DEB package files but doesn’t create a make script, so option E is incorrect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

4- What is the most common compiler used for open source Linux applications?

  • gcc
  • make
  • configure
  • dpkg
  • rpm
A

gcc

The GNU Compiler Collection (gcc) is the most popular compiler used in Linux, so option A is correct. The make utility runs make scripts to help build applications using gcc, but it doesn’t compile the source code directly, so option B is incorrect. The configure utility helps build the make script based on the location of the compiler program, but it doesn’t compile the source code, so option C is incorrect. The dpkg and rpm programs are package tools for installing DEB and RPM package files, respectively, and aren’t used to compile source code files, so options D and E are both incorrect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

6- What tar command‐line options are commonly used together to extract and decompress files from a tarball file?

  • -Uvh
  • -zxvf
  • -xvf
  • -zcvf
  • -cvf
A

-zxvf

The -zxvf command‐line options for the tar program are commonly used to decompress and extract files from a tarball file, so option B is correct. The -Uvh option group is commonly used for the rpm program to install packages, but it’s not valid for the tar program, so option A is incorrect. The -xvf command‐line option combination extracts files from a tarball but doesn’t decompress them, so option C is incorrect. The -zcvf option group will create a new tarball and compress it, not extract and decompress the files, so option D is incorrect. The -cvf option group creates a new tarball file, but it doesn’t extract files from an existing file, so option E is incorrect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

7- What filename extension does the Rocky Linux distribution use for packages?

  • .deb
  • .rpm
  • .tgz
  • .tar
  • .gz
A

.rpm

The Rocky Linux distribution uses the Red Hat package management system, which uses RPM files, so option B is correct. The .deb filename extension is used to identify Debian‐based package management files, so option A is incorrect. The .tgz filename extension is used to identify compressed tar archive files, so option C is incorrect. The .tar filename extension is used to identify tar archive files, so option D is incorrect, and the .gz filename extension is used to identify files compressed with the gzip utility, so option E is incorrect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

9- What tools do you use to install packages from a Red Hat–based repository? (Choose two.)

  • dpkg
  • tar
  • yum
  • apt-get
  • dnf
A
  • yum
  • dnf

The yum and dnf programs are used to install RPM packages from Red Hat–based repositories, so options C and E are correct. The dpkg and apt-get programs are used for installing DEB files on Debian‐based package management systems, so options A and D are incorrect. The tar program is used for creating and extracting archive files, so option B is incorrect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

10- What application container format do Red Hat–based Linux distributions utilize for installing applications?

  • flatpak
  • rpm
  • dpkg
  • snap
  • gcc
A

flatpak

Red Hat–based Linux distributions use the flatpak application container format to install containers, making option A correct. The snap application container format is used in Ubuntu, but not Red Hat, so option D is incorrect. The rpm and dpkg formats are used in package management, not application containers, so options B and C are incorrect. The gcc program is used for compiling source code into executable programs, so option E is incorrect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly