{
    "mode": "man",
    "parameter": "systemd-update-done.service",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/systemd-update-done.service/8/json",
    "generated": "2026-09-14T00:13:14Z",
    "synopsis": "systemd-update-done.service\n/usr/lib/systemd/systemd-update-done",
    "sections": {
        "NAME": {
            "content": "systemd-update-done.service, systemd-update-done - Mark /etc/ and /var/ fully updated\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "systemd-update-done.service\n\n/usr/lib/systemd/systemd-update-done\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "systemd-update-done.service is a service that is invoked as part of the first boot after the\nvendor operating system resources in /usr/ have been updated. This is useful to implement\noffline updates of /usr/ which might require updates to /etc/ or /var/ on the following boot.\n\nsystemd-update-done.service updates the file modification time (mtime) of the stamp files\n/etc/.updated and /var/.updated to the modification time of the /usr/ directory, unless the\nstamp files are already newer.\n\nServices that shall run after offline upgrades of /usr/ should order themselves before\nsystemd-update-done.service, and use the ConditionNeedsUpdate= (see systemd.unit(5))\ncondition to make sure to run when /etc/ or /var/ are older than /usr/ according to the\nmodification times of the files described above. This requires that updates to /usr/ are\nalways followed by an update of the modification time of /usr/, for example by invoking\ntouch(1) on it.\n\nNote that if the systemd.condition-needs-update= kernel command line option is used it\noverrides the ConditionNeedsUpdate= unit condition checks. In that case\nsystemd-update-done.service will not reset the condition state until a follow-up reboot where\nthe kernel switch is not specified anymore.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd(1), systemd.unit(5), touch(1)\n\nsystemd 255                                                           SYSTEMD-UPDATE-DONE.SERVICE(8)",
            "subsections": []
        }
    },
    "summary": "systemd-update-done.service, systemd-update-done - Mark /etc/ and /var/ fully updated",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "systemd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
        },
        {
            "name": "systemd.unit",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.unit/5/json"
        },
        {
            "name": "touch",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/touch/1/json"
        },
        {
            "name": "SYSTEMD-UPDATE-DONE.SERVICE",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/SYSTEMD-UPDATE-DONE.SERVICE/8/json"
        }
    ]
}