9.7.6 Practice Questions Linux Application Management – Flashcards

Unlock all answers in this set

Unlock answers
question
You're using a Linux distribution that uses RPM for package management. Which command would you use to install httpd, the Apache HTTP Server package, and all its dependencies?
answer
yum install httpd Explanation On a Linux distribution that uses RPM for package management, entering yum install httpd at the command line will install the Apache HTTP Server package and all its dependencies. YUM automatically locates and downloads RPM packages for you by searching one or more repositories on the Internet. It can install a software package and all of its dependencies at the same time.
question
You're using a Linux distribution that uses RPM for package management. Which command would you use to check to see if the httpd package, the Apache HTTP Server package, is installed?
answer
yum list intalled httpd Explanation On a Linux distribution that uses RPM for package management, entering yum installed httpd at the command line will check to see if the Apache HTTP Server package is installed.
question
You're using a Linux distribution that uses Debian Package Manager (dpkg) for package management. Which command would you use to install httpd, the Apache HTTP Server package, and all its dependencies?
answer
apt-get install httpd Explanation On a Linux distribution that uses Debian Package Manager (dpkg) for package management, entering apt-get install httpd at the command line will install the Apache HTTP Server package and all its dependencies. The apt-get command can automatically locate and download Debian packages for you by searching one or more repositories on the Internet. It installs the package and all of its dependencies at the same time.
question
You're using a Linux distribution that uses RPM for package management. Which command would you use to display a list of all packages available for installation withing the Internet repositories configured on this system?
answer
yum list available Explanation On a Linux distribution that uses RPM for package management, entering yum list available at the command line will display a list of all packages available for installation within the Internet repositories yum is configured to use on this system.
question
Which command would you use to display a simple list of all processes running on a Linux distribution that uses either RPM or dpkg for package management?
answer
ps -e Explanation The ps utility is used to display running processes on a Linux system. Entering ps -e will display a simple list, without extended information, of all processes running on the system. ps -ef will display a list with extended information about all the processes running on the system. yum and apt-get are package management tools. They are not used for process management.
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New