{
  "created": "2022-12-03T21:34:16Z",
  "hierarchy": [
    {
      "name": "ROOT",
      "type": "folder",
      "uri": "/ROOT"
    },
    {
      "name": "Reinstalling Configuration Files via apt on Ubuntu",
      "type": "article",
      "uri": "Reinstalling_Configuration_Files_via_apt_on_Ubuntu"
    }
  ],
  "html": "<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"UTF-8\"/><meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"/><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/><meta name=\"name\" content=\"Nikhil's Personal Wiki\"/><meta name=\"description\" content=\"Reinstalling Configuration Files via apt on Ubuntu – Nikhil's Personal Wiki\"/><meta name=\"author\" content=\"Nikhil Anand\"/><meta name=\"theme-color\" content=\"#ffe9a00\"/><meta property=\"og:title\" content=\"Reinstalling Configuration Files via apt on Ubuntu – Nikhil's Personal Wiki\"/><meta property=\"og:description\" content=\"Reinstalling Configuration Files via apt on Ubuntu – Nikhil's Personal Wiki\"/><meta property=\"og:type\" content=\"website\"/><meta property=\"og:image\" content=\"/img/logo512.png\"/><meta property=\"og:site_name\" content=\"Nikhil's Personal Wiki\"/><link rel=\"og:image\" href=\"/img/logo512.png\"/><link rel=\"icon\" href=\"/img/favicon.png\"/><link rel=\"apple-touch-icon\" href=\"/img/logo192.png\"/><link rel=\"stylesheet\" href=\"/css/styles.css\"/><title>Reinstalling Configuration Files via apt on Ubuntu – Nikhil's Personal Wiki</title><script defer data-domain=\"wiki.nikhil.io\" src=\"https://plausible.io/js/plausible.js\"></script></head><body><noscript>👉 A few things won't work if you have JavaScript disabled.</noscript><div class=\"container article\"><header><nav><ul><li><a href=\"/archive\" class title=\"Archive\"><span>Archive</span></a></li><li><a href=\"/Home\" class title=\"Home\"><span>Home</span></a></li><li><a href=\"/random\" class title=\"See a random article\"><span>Random</span></a></li><li><a href=\"/Reinstalling_Configuration_Files_via_apt_on_Ubuntu/raw.txt\" title=\"View Source\"><span>Raw</span></a></li><li><a href=\"/Reinstalling_Configuration_Files_via_apt_on_Ubuntu/revisions\" class title=\"View revisions\"><span>Revisions</span></a></li><li><a href=\"/Reinstalling_Configuration_Files_via_apt_on_Ubuntu/index.json\" title=\"View JSON Object\"><span>JSON</span></a></li></ul></nav></header><main><article><article-hierarchy><ul><li><a data-entity-type=\"folder\" href=\"/ROOT\" title=\"ROOT\">Root</a></li><li><a data-entity-type=\"article\" href=\"/Reinstalling_Configuration_Files_via_apt_on_Ubuntu\" title=\"Reinstalling Configuration Files via apt on Ubuntu\">Reinstalling Configuration Files via apt on Ubuntu</a></li></ul></article-hierarchy><header><h1>Reinstalling Configuration Files via apt on Ubuntu</h1></header><article-content><p>I accidentally hosed <code>/etc/nginx</code> thinking it would be reinstalled with <code>apt install nginx</code>. When no config files showed up, I had to do this to get things going.</p>\n<pre tabindex=\"0\" class=\"chroma\"><code><span class=\"line\"><span class=\"cl\"><span class=\"c1\"># Purge, then reinstall</span>\n</span></span><span class=\"line\"><span class=\"cl\">apt-get purge nginx nginx-common nginx-full\n</span></span><span class=\"line\"><span class=\"cl\">apt-get install nginx\n</span></span><span class=\"line\"><span class=\"cl\">\n</span></span><span class=\"line\"><span class=\"cl\"><span class=\"c1\"># Old option</span>\n</span></span><span class=\"line\"><span class=\"cl\">apt-get -o DPkg::options::<span class=\"o\">=</span>--force-confmiss --reinstall install nginx nginx-common nginx-full\n</span></span></code></pre></article-content></article></main><footer><p></p><ul><li>374 bytes</li><li>Created on Saturday, 3 December 2022 at 21:34 UTC</li><li>Modified on Tuesday, 13 January 2026 at 18:47 UTC</li><br/><li><a href=\"https://github.com/afreeorange/wiki.nikhil.io.articles/edit/master/Reinstalling Configuration Files via apt on Ubuntu.md\" title=\"Edit this article\">Edit this article</a></li><li><a href=\"https://github.com/afreeorange/bock\" title=\"View the project that generates this wiki on Github\"><span>bock 6.3.0-alpha</span></a></li></ul></footer></div><script src=\"/js/table-sort.js\" defer></script><script type=\"text/javascript\">\n        document.body.addEventListener(\n          \"keypress\", (e) => e.key === \"f\"\n          ? window.location.assign(\"/archive\")\n          : null);\n      </script></body></html>",
  "id": "b58e75e5-c645-5f7d-b4c6-f20e800570a8",
  "modified": "2026-01-13T18:47:28Z",
  "revisions": [
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2026-01-13T18:47:28Z",
      "id": "2436477560f26e23d00a24add1cbfeafdca4af78",
      "shortId": "24364775",
      "subject": "No compression\n",
      "content": "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.\n\n```bash\n# Purge, then reinstall\napt-get purge nginx nginx-common nginx-full\napt-get install nginx\n\n# Old option\napt-get -o DPkg::options::=--force-confmiss --reinstall install nginx nginx-common nginx-full\n```\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2022-12-25T00:00:50Z",
      "id": "eb9aa198f5dc1f093c79f2a003bec5eb061e016e",
      "shortId": "eb9aa198",
      "subject": "Merge branch 'master' of github.com:afreeorange/wiki.nikhil.io.articles\n",
      "content": "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.\n\n```bash\n# Purge, then reinstall\napt-get purge nginx nginx-common nginx-full\napt-get install nginx\n\n# Old option\napt-get -o DPkg::options::=--force-confmiss --reinstall install nginx nginx-common nginx-full\n```\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2022-12-19T18:40:53Z",
      "id": "726ae616259cb18d47d2400fa9c19c23c1f42331",
      "shortId": "726ae616",
      "subject": "Merge branch 'master' of github.com:afreeorange/wiki.nikhil.io.articles\n",
      "content": "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.\n\n```bash\n# Purge, then reinstall\napt-get purge nginx nginx-common nginx-full\napt-get install nginx\n\n# Old option\napt-get -o DPkg::options::=--force-confmiss --reinstall install nginx nginx-common nginx-full\n```\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2022-12-03T21:34:16Z",
      "id": "7240fc6ecc57747d1aa54a2976394177042ac5be",
      "shortId": "7240fc6e",
      "subject": "Create Reinstalling Configuration Files via apt on Ubuntu.md\n",
      "content": "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.\n\n```bash\n# Purge, then reinstall\napt-get purge nginx nginx-common nginx-full\napt-get install nginx\n\n# Old option\napt-get -o DPkg::options::=--force-confmiss --reinstall install nginx nginx-common nginx-full\n```\n"
    }
  ],
  "sizeInBytes": 374,
  "source": "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.\n\n```bash\n# Purge, then reinstall\napt-get purge nginx nginx-common nginx-full\napt-get install nginx\n\n# Old option\napt-get -o DPkg::options::=--force-confmiss --reinstall install nginx nginx-common nginx-full\n```\n",
  "title": "Reinstalling Configuration Files via apt on Ubuntu",
  "untracked": false,
  "uri": "/Reinstalling_Configuration_Files_via_apt_on_Ubuntu",
  "relativePath": "Reinstalling Configuration Files via apt on Ubuntu.md"
}
