Module 11 Live Virtual Machine Labs 1-5 Flashcards

1
Q

lab 11-1

If you have recently installed a package and run the update command to update the package, what is the likely outcome?

The update will fail.
No new updates will be installed.
You will be prompted to overwrite the existing package.
The existing package will be removed, and the new package will be installed.

A

No new updates will be installed.

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

To verify that the httpd package is installed, which of the following command should you use?

yum list httpd
yum version httpd
yum httpd
yum show httpd

A

yum list httpd

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

If you have httpd package installed, which of the following command should you use to get more information about it?

yum version httpd
yum list httpd
yum show httpd
yum info httpd

A

yum info httpd

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

If you need to find the information about a package using the rpm command, which parameter should you use?

-q
-b
-l
-a

A

-q

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

Which command will list the dependencies of the httpd package?

yum deplist httpd
yum info httpd
Yum show httpd
yum list httpd

A

yum deplist httpd

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

lab 11-2

Which of the following tasks can be performed by the apt-get command? [Choose all that apply.]

Remove
Install
Repair
Upgrade

A

remove
install
upgrade

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

You use the following command to update the local package index: sudo apt update

Provide the password for the user account from which you are installing the package

Download and extract the respective package on the hard drive

Start the installation as soon as the package download is completed

No action required as the installation will be automatically initiated

A

Provide the password for the user account from which you are installing the package

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

Which of the following are updated with the following command?
sudo apt-get update

[Choose all that apply.]

Repositories
Binary files
Package
Shell
Database

A

Repositories
Database

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

To remove a package, which of the following parameter must be run with the apt-get command?

Uninstall
Destroy
Delete
Remove

A

Remove

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

lab 11-3

Which repository should you install before installing the Nginx Web server?

Epel
CentOS
Magic
Update

A

Epel

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

To remove a package and its dependencies, which of the following parameter must be run with the apt-get command?

Destroy
Autoremove
Delete
Uninstall
Remove

A

Autoremove

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

When adding a firewall rule for HTTP, which zone should be used?

Intranet
Public
Internet
Private

A

Public

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

Which parameter should you use with the yum command so that you do not have to provide confirmation during the installation?

-k
-M
-y
-B
-a

A

-y

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

Which command should you use to update the firewall rules?

firewall-cmd –restart
firewall-cmd –update
firewall-cmd –load
firewall-cmd –reload

A

firewall-cmd –reload

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

Which value when used with gzip provides the highest compression but is slowest?

9
1
10
0

A

9

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

Which command should you use to check if createrepo package is already installed?

rpm -k | grep createrepo
rpm -b | grep createrepo
rpm -qa | grep createrepo
rpm -t | grep createrepo

A

rpm -qa | grep createrepo

15
Q

lab 11-4

To decompress a file using the gzip command, which parameter do you need to use?

-a
-f
-d
-m

A

-d

16
Q

Which utility uses the Burrows-Wheeler algorithm?

xz
tar
gzip
bzip2

A

bzip2

17
Q

To view the contents of a tar file without extracting it, which parameter should you use?

-a
-d
-m
-f
-t

A

-t

18
Q

Which parameter should you use to extract files from a tar file?

-f
-x
-a
-d
-t
-m

A

-x

19
Q

lab 11-5

You want to update all packages in your system as well as their dependencies. Which command should you use?

yum update packages
yum check-update
yum update
yum update all

A

yum update

20
Q

Which package do you need to install to enable automatic updates?

check-update
yum-cron
yum
yum-repo

A

yum-cron

21
Q

Which file do you need to edit to enable automatic updates?

yum-repo.conf
yum-config
yum-cron.conf
yum.conf

A

yum-cron.conf

22
Q

Which parameter should be used with the yum command to check if there are versions of a package available?

–history
–versions
–duplicates
–showduplicates

A

–showduplicates