Question 100
Before changing a Linux system, an engineer observes: An obsolete package must be removed together with its package-managed configuration files. Which check most directly isolates the relevant cause or prerequisite?
Explanation
Correct Answer
Identify the package's retained config state and back up any intentionally preserved data. This isolates the relevant condition before applying a change. The appropriate corrective response is: Use apt-get purge or dpkg --purge for the package when configuration removal is authorized.
Incorrect Answers
Verify the installed package name with dpkg -s before inspecting its contents. That would matter when a Debian binary package is installed but the operator needs to list the files shipped by that package. The relevant distinction in this case is: Identify the package's retained config state and back up any intentionally preserved data.
Inspect dpkg --audit and any configuration script failure messages before retrying. That would matter when a Debian package upgrade was interrupted after unpacking and dpkg reports packages not fully configured. It does not address this case's requirement: An obsolete package must be removed together with its package-managed configuration files.
Check whether the service has modified configuration files that need to be retained. That would matter when a service package is no longer needed but its local configuration should remain for possible reinstallation. That separate mechanism does not verify the needed Linux administration outcome in this case.