{
    "mode": "man",
    "parameter": "locale-gen",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/locale-gen/8/json",
    "generated": "2026-10-05T22:09:53Z",
    "synopsis": "locale-gen [--keep-existing]",
    "sections": {
        "NAME": {
            "content": "locale-gen — generate localisation files from templates\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "locale-gen [--keep-existing]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "As compiled locales are large, only templates are distributed in the default locales package,\nand only the desired locales are compiled on the target system.\n\nAfter  selecting  the  locales  into  /etc/locale.gen  (via  dpkg  package configuration, for\nexample), locale-gen is run to compile them via localedef(1).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "--keep-existing  Do not remove /usr/lib/locale/locale-archive, only compiling new locales.\n",
            "subsections": []
        },
        "FILES": {
            "content": "/etc/locale.gen  Whitespace-separated newline-delimited locale charset  list  of  locales  to\nbuild with # start-of-line comments.\n/var/lib/locales/supported.d  A  directory  containing  locale.gen  snippets provided by lan‐\nguage-pack packages.  Do not edit these manually, they will  be\noverwritten on package upgrades.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "locale(1), localedef(1), locale.gen(5)\n\n/usr/share/i18n/SUPPORTED  (/usr/local/share/i18n/SUPPORTED)  — list of all supported locales\non the current system.\n\nThe locales-all package, which contains all supported locales in compiled form.\n\nDebian                                       May 5, 2022                               LOCALE-GEN(8)",
            "subsections": []
        }
    },
    "summary": "locale-gen — generate localisation files from templates",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "locale",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/locale/1/json"
        },
        {
            "name": "localedef",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/localedef/1/json"
        },
        {
            "name": "locale.gen",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/locale.gen/5/json"
        },
        {
            "name": "LOCALE-GEN",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/LOCALE-GEN/8/json"
        }
    ]
}