{
    "mode": "man",
    "parameter": "update-smart-drivedb",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/update-smart-drivedb/8/json",
    "generated": "2026-05-30T08:17:17Z",
    "synopsis": "update-smart-drivedb [OPTIONS] [DESTFILE]",
    "sections": {
        "NAME": {
            "content": "update-smart-drivedb - update smartmontools drive database\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "update-smart-drivedb [OPTIONS] [DESTFILE]\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "[This man page is generated for the Linux version of smartmontools.  It does not contain info\nspecific to other platforms.]\n\nupdate-smart-drivedb  updates  /var/lib/smartmontools/drivedb/drivedb.h  or   DESTFILE   from\nbranches/RELEASE72DRIVEDB of smartmontools SVN repository.\n\nThe tools used for downloading are either curl(1), wget(1), lynx(1), or svn(1).\n\nThe  downloaded  file  is verified with OpenPGP/GPG key ID 721042C5.  The public key block is\nincluded in the script.\n\nThe old file is kept if the downloaded file is identical  (ignoring  the  differences  in  Id\nstring) otherwise it is moved to drivedb.h.old.\n\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-s SMARTCTL",
                    "content": "Use  the smartctl(8) executable at path SMARTCTL for drive database syntax check.  The\nform '-s -' disables the syntax check.  The default is /usr/sbin/smartctl.\n",
                    "flag": "-s",
                    "arg": "SMARTCTL"
                },
                {
                    "name": "-t TOOL",
                    "content": "Use TOOL for download.  TOOL is one of: curl wget lynx svn.  The default is the  first\none found in PATH.\n",
                    "flag": "-t",
                    "arg": "TOOL"
                },
                {
                    "name": "-u LOCATION",
                    "content": "Use URL of LOCATION for download.  LOCATION is one of:\ngithub (GitHub mirror of SVN repository),\nsf (Sourceforge code browser),\nsvn (SVN repository),\nsvni (SVN repository via HTTP instead of HTTPS),\ntrac (Trac code browser).\nThe default is svn.\n",
                    "flag": "-u",
                    "arg": "LOCATION"
                },
                {
                    "name": "--trunk",
                    "content": "Download  from  SVN  trunk.   This  requires '--no-verify' unless the trunk version is\nstill identical to branches/RELEASE72DRIVEDB.\n",
                    "long": "--trunk"
                },
                {
                    "name": "--branch X.Y",
                    "content": "[NEW   EXPERIMENTAL   UPDATE-SMART-DRIVEDB   FEATURE]   Download   from   branches/RE‐\nLEASEXYDRIVEDB.   This also selects the OpenPGP/GPG key for older branches (5.40 to\n6.6: Key ID DFD22559).\n",
                    "long": "--branch"
                },
                {
                    "name": "--cacert FILE",
                    "content": "Use CA certificates from FILE to verify the peer.\n",
                    "long": "--cacert",
                    "arg": "FILE"
                },
                {
                    "name": "--capath DIR",
                    "content": "Use CA certificate files from DIR to verify the peer.\n",
                    "long": "--capath",
                    "arg": "DIR"
                },
                {
                    "name": "--insecure",
                    "content": "Don't abort download if certificate verification fails.  This option is also  required\nif a HTTP URL is selected with '-u' option.\n",
                    "long": "--insecure"
                },
                {
                    "name": "--no-verify",
                    "content": "Don't verify signature with GnuPG.\n",
                    "long": "--no-verify"
                },
                {
                    "name": "--export-key",
                    "content": "Print the OpenPGP/GPG public key block.\n",
                    "long": "--export-key"
                },
                {
                    "name": "--dryrun",
                    "content": "Print download commands only.\n",
                    "long": "--dryrun"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                }
            ]
        },
        "EXAMPLES": {
            "content": "# update-smart-drivedb\n/var/lib/smartmontools/drivedb/drivedb.h updated from \\\nbranches/RELEASE72DRIVEDB\n\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "The  exit  status is 0 if the database has been successfully updated.  If an error occurs the\nexit status is 1.\n\n",
            "subsections": []
        },
        "FILES": {
            "content": "",
            "subsections": [
                {
                    "name": "/usr/sbin/update-smart-drivedb",
                    "content": "full path of this script.\n"
                },
                {
                    "name": "/usr/sbin/smartctl",
                    "content": "used to check syntax of new drive database.\n"
                },
                {
                    "name": "/var/lib/smartmontools/drivedb/drivedb.h",
                    "content": "current drive database.\n"
                },
                {
                    "name": "/var/lib/smartmontools/drivedb/drivedb.h.raw",
                    "content": "current drive database with unexpanded SVN Id string.\n"
                },
                {
                    "name": "/var/lib/smartmontools/drivedb/drivedb.h.raw.asc",
                    "content": "signature file.\n\n/var/lib/smartmontools/drivedb/drivedb.h.*old*\nprevious files.\n\n/var/lib/smartmontools/drivedb/drivedb.h.*error*\nnew files if rejected due to errors.\n"
                },
                {
                    "name": "/var/lib/smartmontools/drivedb/drivedb.h.lastcheck",
                    "content": "empty file created if downloaded file was identical.\n\n"
                }
            ]
        },
        "AUTHORS": {
            "content": "Christian Franke.\nThis manual page was originally written by Hannes von Haugwitz <hannes@vonhaugwitz.com>.\n\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "To submit a bug report, create a ticket in smartmontools wiki:\n<https://www.smartmontools.org/>.\nAlternatively send the info to the smartmontools support mailing list:\n<https://listi.jpberlin.de/mailman/listinfo/smartmontools-support>.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "smartctl(8), smartd(8).\n\n",
            "subsections": []
        },
        "PACKAGE VERSION": {
            "content": "smartmontools-7.2 2020-12-30 r5155\n$Id: update-smart-drivedb.8.in 5112 2020-11-07 11:41:13Z chrfranke $\n\n\n\nsmartmontools-7.2                            2020-12-30                      UPDATE-SMART-DRIVEDB(8)",
            "subsections": []
        }
    },
    "summary": "update-smart-drivedb - update smartmontools drive database",
    "flags": [
        {
            "flag": "-s",
            "long": null,
            "arg": "SMARTCTL",
            "description": "Use the smartctl(8) executable at path SMARTCTL for drive database syntax check. The form '-s -' disables the syntax check. The default is /usr/sbin/smartctl."
        },
        {
            "flag": "-t",
            "long": null,
            "arg": "TOOL",
            "description": "Use TOOL for download. TOOL is one of: curl wget lynx svn. The default is the first one found in PATH."
        },
        {
            "flag": "-u",
            "long": null,
            "arg": "LOCATION",
            "description": "Use URL of LOCATION for download. LOCATION is one of: github (GitHub mirror of SVN repository), sf (Sourceforge code browser), svn (SVN repository), svni (SVN repository via HTTP instead of HTTPS), trac (Trac code browser). The default is svn."
        },
        {
            "flag": "",
            "long": "--trunk",
            "arg": null,
            "description": "Download from SVN trunk. This requires '--no-verify' unless the trunk version is still identical to branches/RELEASE72DRIVEDB."
        },
        {
            "flag": "",
            "long": "--branch",
            "arg": null,
            "description": "[NEW EXPERIMENTAL UPDATE-SMART-DRIVEDB FEATURE] Download from branches/RE‐ LEASEXYDRIVEDB. This also selects the OpenPGP/GPG key for older branches (5.40 to 6.6: Key ID DFD22559)."
        },
        {
            "flag": "",
            "long": "--cacert",
            "arg": "FILE",
            "description": "Use CA certificates from FILE to verify the peer."
        },
        {
            "flag": "",
            "long": "--capath",
            "arg": "DIR",
            "description": "Use CA certificate files from DIR to verify the peer."
        },
        {
            "flag": "",
            "long": "--insecure",
            "arg": null,
            "description": "Don't abort download if certificate verification fails. This option is also required if a HTTP URL is selected with '-u' option."
        },
        {
            "flag": "",
            "long": "--no-verify",
            "arg": null,
            "description": "Don't verify signature with GnuPG."
        },
        {
            "flag": "",
            "long": "--export-key",
            "arg": null,
            "description": "Print the OpenPGP/GPG public key block."
        },
        {
            "flag": "",
            "long": "--dryrun",
            "arg": null,
            "description": "Print download commands only."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [
        "# update-smart-drivedb",
        "/var/lib/smartmontools/drivedb/drivedb.h updated from \\",
        "branches/RELEASE72DRIVEDB"
    ],
    "see_also": [
        {
            "name": "smartctl",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/smartctl/8/json"
        },
        {
            "name": "smartd",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/smartd/8/json"
        }
    ]
}