Usually, I run aptitude -y install locales then dpkg-reconfigure locales to set up locale.
Now I want to put it into a shell script, how can I reliably do the following, automatically / non-interactively?
- Choose
en_US.UTF-8and set it as system default - Disable all other locales
- (Optional) Verify if
/etc/default/localecontains one-and-only entry ofLANG=en_US.UTF-8as expected
