Topic 2, Linux Installation and Package Management
Which of the following commands is used to update the list of available packages when using dpkg based package management?
A.
apt-get update
B.
apt-get upgrade
C.
apt-cache update
D.
apt-get refresh
E.
apt-cache upgrade
apt-get update
You want to preview where the package file, apache-xml.i386.rpm, will install its files before
installing it. What command do you issue?
A.
rpm -qp apache-xml.i386.rpm
B.
rpm -qv apache-xml.i386.rpm
C.
rpm -ql apache-xml.i386.rpm
D.
rpm -qpl apache-xml.i386.rpm
rpm -qpl apache-xml.i386.rpm
Typically, which top level system directory is used for files and data that change regularly
while the system is running and are to be kept between reboots? (Specify only the top level
directory)
Answer: /var, /var/, var, var/
When removing a package, which of the following dpkg options will completely remove the
files including configuration files?
A.
--clean
B.
--delete
C.
--purge
D.
–remove
--purge
An administrator has issued the following command:
grub-install -root-directory=/custom-grub /dev/sda
In which directory will new configuration files be found? (Provide the full directory path only
without the filename)
Answer: /custom-grub/boot/grub/, /custom-grub/boot/grub
Page 7 out of 49 Pages |
Previous |