Question 190
A Linux administrator faces this situation: A service package is no longer needed but its local configuration should remain for possible reinstallation. Which action best resolves the specific issue while preserving correct system behavior?
Explanation
Correct Answer
Use apt-get remove or dpkg -r rather than the purge operation. This corrects the case-specific failure. First verify: Check whether the service has modified configuration files that need to be retained. Then demonstrate success: The binaries are removed while package configuration designated for retention remains.
Incorrect Answers
Run apt-get update before the planned apt-get install from configured repositories. That would matter when an administrator needs to install a Debian package by name but the local repository index is stale. The relevant distinction in this case is: Use apt-get remove or dpkg -r rather than the purge operation.
Use dpkg -L package-name to enumerate the installed package's file list. That would matter when a Debian binary package is installed but the operator needs to list the files shipped by that package. It does not address this case's requirement: A service package is no longer needed but its local configuration should remain for possible reinstallation.
Use apt-get purge or dpkg --purge for the package when configuration removal is authorized. That would matter when an obsolete package must be removed together with its package-managed configuration files. That separate mechanism does not verify the needed Linux administration outcome in this case.