{
    "mode": "man",
    "parameter": "UPDATE-LOCALE",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/UPDATE-LOCALE/8/json",
    "generated": "2026-06-13T22:58:07Z",
    "sections": {
        "NAME": {
            "content": "update-locale - Modify global locale settings\n",
            "subsections": []
        },
        "SYNTAX": {
            "content": "update-locale [OPTIONS] [var=locale | var] [...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This  program  can  be called by maintainer scripts when Debian packages are installed or re‐\nmoved, it updates the /etc/default/locale file to reflect changes in system configuration re‐\nlated  to  global  locale  settings.  When variables have no value assigned, they are removed\nfrom the locale file.  Some basic checks are performed to ensure that requested settings  are\nvalid.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "--help Display an help message and exit.\n",
            "subsections": [
                {
                    "name": "--reset",
                    "content": "Variables which are not set on command-line are cleared out.\n\n--locale-file FILE\nDefine file containing locale variables.  (Default: /etc/default/locale)\n",
                    "long": "--reset"
                },
                {
                    "name": "--no-checks",
                    "content": "Do not perform sanity checks on locale variables.\n",
                    "long": "--no-checks"
                }
            ]
        },
        "EXAMPLE": {
            "content": "The command\nupdate-locale LANG=enCA.UTF-8 LANGUAGE\nsets LANG to enCA.UTF-8 and removes definitions for LANGUAGE.\n",
            "subsections": []
        },
        "FILES": {
            "content": "",
            "subsections": [
                {
                    "name": "/etc/default/locale",
                    "content": "File where global locale settings are stored.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "Denis Barbier <barbier@linuxfr.org>\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "locale-gen(8), locale(1)\n\n\n\nDebian GNU/Linux                             April 2006                             UPDATE-LOCALE(8)",
            "subsections": []
        }
    },
    "summary": "update-locale - Modify global locale settings",
    "flags": [
        {
            "flag": "",
            "long": "--reset",
            "arg": null,
            "description": "Variables which are not set on command-line are cleared out. --locale-file FILE Define file containing locale variables. (Default: /etc/default/locale)"
        },
        {
            "flag": "",
            "long": "--no-checks",
            "arg": null,
            "description": "Do not perform sanity checks on locale variables."
        }
    ],
    "examples": [
        "The command",
        "update-locale LANG=enCA.UTF-8 LANGUAGE",
        "sets LANG to enCA.UTF-8 and removes definitions for LANGUAGE."
    ],
    "see_also": [
        {
            "name": "locale-gen",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/locale-gen/8/json"
        },
        {
            "name": "locale",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/locale/1/json"
        }
    ]
}