Module 11 Live Virtual Machine Labs 1-5 Flashcards
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.
No new updates will be installed.
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
yum list httpd
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
yum info httpd
If you need to find the information about a package using the rpm command, which parameter should you use?
-q
-b
-l
-a
-q
Which command will list the dependencies of the httpd package?
yum deplist httpd
yum info httpd
Yum show httpd
yum list httpd
yum deplist httpd
lab 11-2
Which of the following tasks can be performed by the apt-get command? [Choose all that apply.]
Remove
Install
Repair
Upgrade
remove
install
upgrade
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
Provide the password for the user account from which you are installing the package
Which of the following are updated with the following command?
sudo apt-get update
[Choose all that apply.]
Repositories
Binary files
Package
Shell
Database
Repositories
Database
To remove a package, which of the following parameter must be run with the apt-get command?
Uninstall
Destroy
Delete
Remove
Remove
lab 11-3
Which repository should you install before installing the Nginx Web server?
Epel
CentOS
Magic
Update
Epel
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
Autoremove
When adding a firewall rule for HTTP, which zone should be used?
Intranet
Public
Internet
Private
Public
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
-y
Which command should you use to update the firewall rules?
firewall-cmd –restart
firewall-cmd –update
firewall-cmd –load
firewall-cmd –reload
firewall-cmd –reload
Which value when used with gzip provides the highest compression but is slowest?
9
1
10
0
9