CompTIA Linux+ (XK0-006) — Question 10
Due to application compatibility issues, the Python 3 OpenSSL library should not be upgraded. Which of the following commands should the systems administrator use to ensure the package stays at the current version?
Answer options
- A. dpkg --hold python3-openssl
- B. apt set-selections python3-openssl
- C. apt-mark hold python3-opensal
- D. echo "python3-openssl > hold" |apt set-selections
Correct answer: C
Explanation
The correct command is 'apt-mark hold python3-openssl', which is specifically designed to prevent a package from being upgraded. The other options either do not exist or are incorrectly formatted commands that won't achieve the desired effect of holding the package version.