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. -s only displays status.
dpkg-reconfigure tzdataCorrect. dpkg-reconfigure tzdata reruns the package configuration.
Correct. dpkg-reconfigure reruns the package's configuration process.
dpkg -i tzdataIncorrect. -i expects a deb archive to install.
Incorrect. -i installs an archive and is not a configuration-only operation.
dpkg -l tzdataIncorrect. -l displays a short status line.
Incorrect. -l displays a compact 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 / ヘルプ表示のみ
- Use a disposable package or read-only help when testing package commands.
- Package behavior can vary with dpkg and debconf versions.
Foundation review
Place the operation
Reconfiguration operates on an installed package's configuration flow, unlike installation and status queries.
Check the side effect
Review the command help and account for required administrative privileges.