PrepAway - Latest Free Exam Questions & Answers

Which of the following actions can he perform to accomplish his task?

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. He is working as
a root user on the Linux operating system. He is installing a new Debian package named my_package.deb. However, he
wants to ensure that while upgrading my_package.deb, one of the parts of my_package.deb named fglrx-driver does not
upgrade. Which of the following actions can he perform to accomplish his task?
Each correct answer represents a complete solution. Choose all that apply.

PrepAway - Latest Free Exam Questions & Answers

A.
Edit the /etc/apt/preferences file and write the following lines:
Package: fglrx-driver
Pin: version 8.43.2-2
Pin-Priority: 1001

B.
Execute the following command:
echo "fglrx-driver hold" | dpkg –set-selections

C.
Execute the following command:
dpkg -S fglrx-driver

D.
Execute the following command:
dpkg -s fglrx-driver

Explanation:
dpkg –set-selections
Set package selections using file read from stdin. This file should be in the format ’<package> <state>’, where state is one of install, hold, deinstall or purge. Blank lines and comment lines beginning with ’#’ are also permitted.

dpkg -S {/path/to/file} Find what package owns the file i.e. find out what package does file belong
dpkg -s {package} | grep Status Find out if Debian package is installed or not (status)


Leave a Reply