Reinstalling Configuration Files via apt on Ubuntu Revision as of Wednesday, 26 June 2024 at 10:57 UTC
I accidentally hosed /etc/nginx
thinking it would be reinstalled with apt install nginx
. When no config files showed up, I had to do this to get things going.
# Purge, then reinstall
apt-get purge nginx nginx-common nginx-full
apt-get install nginx
# Old option
apt-get -o DPkg::options::=--force-confmiss --reinstall install nginx nginx-common nginx-full