Run debconf questions again for the installed tzdata package.
Change its configuration without reinstalling it.
Which command is appropriate?
dpkg-reconfigure PACKAGE reruns configuration for an installed package, commonly through debconf, and usually needs administrative permission.
Detailed explanation
dpkg -s tzdataIncorrect. dpkg -s only displays the status record.
Incorrect. dpkg -s only displays the status record.
dpkg-reconfigure tzdataCorrect. dpkg-reconfigure tzdata reruns the package configuration.
Correct. dpkg-reconfigure tzdata reruns the package configuration.
dpkg -i tzdataIncorrect. -i expects a deb archive to install.
Incorrect. -i expects a deb archive to install.
dpkg -l tzdataIncorrect. -l displays a short status line.
Incorrect. -l displays a short status line.
Try it yourself
An example you can run in a temporary verification environment.
dpkg-reconfigure --help 2>&1 | sed -n '1,8p'Expected result
dpkg-reconfigure [options] packagesに相当する使用法Key points
- It is not a reinstall
- debconf questions run again
- Changes usually need privilege
Notes
- Environment: debconf/dpkg-reconfigure 1.x / ヘルプ表示のみ
- 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.