Run the debconf questions for the installed tzdata package again.
Reconfigure it without reinstalling the package.
Which command is appropriate?
dpkg-reconfigure reruns configuration questions and setup for a debconf-aware installed package; it does not reinstall the package.
Detailed explanation
dpkg -i tzdataIncorrect. dpkg -i installs a deb archive and is not the reconfiguration command.
Incorrect. dpkg -i installs a deb archive and is not the reconfiguration command.
apt-cache reconfigure tzdataIncorrect. apt-cache does not provide a reconfigure subcommand.
Incorrect. apt-cache does not provide a reconfigure subcommand.
dpkg-reconfigure tzdataCorrect. dpkg-reconfigure tzdata reruns the package's configuration process.
Correct. dpkg-reconfigure tzdata reruns the package's configuration process.
dpkg -S tzdataIncorrect. dpkg -S performs a file-owner search.
Incorrect. dpkg -S performs a file-owner search.
Try it yourself
An example you can run in a temporary verification environment.
dpkg-reconfigure --help 2>&1 | headExpected result
dpkg-reconfigureの使用法。実際の再設定は行わないKey points
- It is not a reinstall
- debconf questions run again
- The argument is a package name
Notes
- Environment: Debian系 / debconf
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.