{
    "content": [
        {
            "type": "text",
            "text": "# update-smart-drivedb(8) (man)\n\n**Summary:** update-smart-drivedb - update smartmontools drive database\n\n**Synopsis:** update-smart-drivedb [OPTIONS] [DESTFILE]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -s | — | SMARTCTL | Use the smartctl(8) executable at path SMARTCTL for drive database syntax check. The form '-s -' disables the syntax che |\n| -t | — | TOOL | Use TOOL for download. TOOL is one of: curl wget lynx svn. The default is the first one found in PATH. |\n| -u | — | LOCATION | Use URL of LOCATION for download. LOCATION is one of: github (GitHub mirror of SVN repository), sf (Sourceforge code bro |\n| — | --trunk | — | Download from SVN trunk. This requires '--no-verify' unless the trunk version is still identical to branches/RELEASE72DR |\n| — | --branch | — | [NEW EXPERIMENTAL UPDATE-SMART-DRIVEDB FEATURE] Download from branches/RE‐ LEASEXYDRIVEDB. This also selects the OpenPGP |\n| — | --cacert | FILE | Use CA certificates from FILE to verify the peer. |\n| — | --capath | DIR | Use CA certificate files from DIR to verify the peer. |\n| — | --insecure | — | Don't abort download if certificate verification fails. This option is also required if a HTTP URL is selected with '-u' |\n| — | --no-verify | — | Don't verify signature with GnuPG. |\n| — | --export-key | — | Print the OpenPGP/GPG public key block. |\n| — | --dryrun | — | Print download commands only. |\n| -v | — | — |  |\n\n## Examples\n\n- `# update-smart-drivedb`\n- `/var/lib/smartmontools/drivedb/drivedb.h updated from \\`\n- `branches/RELEASE72DRIVEDB`\n\n## See Also\n\n- smartctl(8)\n- smartd(8)\n\n## Section Outline\n\n- **NAME** (3 lines)\n- **SYNOPSIS** (3 lines)\n- **DESCRIPTION** (15 lines)\n- **OPTIONS** (1 lines) — 12 subsections\n  - -s SMARTCTL (3 lines)\n  - -t TOOL (3 lines)\n  - -u LOCATION (8 lines)\n  - --trunk (3 lines)\n  - --branch X.Y (4 lines)\n  - --cacert FILE (2 lines)\n  - --capath DIR (2 lines)\n  - --insecure (3 lines)\n  - --no-verify (2 lines)\n  - --export-key (2 lines)\n  - --dryrun (2 lines)\n  - -v (1 lines)\n- **EXAMPLES** (5 lines)\n- **EXIT STATUS** (4 lines)\n- **FILES** (1 lines) — 6 subsections\n  - /usr/sbin/update-smart-drivedb (2 lines)\n  - /usr/sbin/smartctl (2 lines)\n  - /var/lib/smartmontools/drivedb/drivedb.h (2 lines)\n  - /var/lib/smartmontools/drivedb/drivedb.h.raw (2 lines)\n  - /var/lib/smartmontools/drivedb/drivedb.h.raw.asc (8 lines)\n  - /var/lib/smartmontools/drivedb/drivedb.h.lastcheck (3 lines)\n- **AUTHORS** (4 lines)\n- **REPORTING BUGS** (6 lines)\n- **SEE ALSO** (3 lines)\n- **PACKAGE VERSION** (6 lines)\n\n## Full Content\n\n### NAME\n\nupdate-smart-drivedb - update smartmontools drive database\n\n### SYNOPSIS\n\nupdate-smart-drivedb [OPTIONS] [DESTFILE]\n\n### DESCRIPTION\n\n[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### OPTIONS\n\n#### -s SMARTCTL\n\nUse  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\n#### -t TOOL\n\nUse TOOL for download.  TOOL is one of: curl wget lynx svn.  The default is the  first\none found in PATH.\n\n#### -u LOCATION\n\nUse 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\n#### --trunk\n\nDownload  from  SVN  trunk.   This  requires '--no-verify' unless the trunk version is\nstill identical to branches/RELEASE72DRIVEDB.\n\n#### --branch X.Y\n\n[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\n#### --cacert FILE\n\nUse CA certificates from FILE to verify the peer.\n\n#### --capath DIR\n\nUse CA certificate files from DIR to verify the peer.\n\n#### --insecure\n\nDon't abort download if certificate verification fails.  This option is also  required\nif a HTTP URL is selected with '-u' option.\n\n#### --no-verify\n\nDon't verify signature with GnuPG.\n\n#### --export-key\n\nPrint the OpenPGP/GPG public key block.\n\n#### --dryrun\n\nPrint download commands only.\n\n#### -v\n\n### EXAMPLES\n\n# update-smart-drivedb\n/var/lib/smartmontools/drivedb/drivedb.h updated from \\\nbranches/RELEASE72DRIVEDB\n\n### EXIT STATUS\n\nThe  exit  status is 0 if the database has been successfully updated.  If an error occurs the\nexit status is 1.\n\n### FILES\n\n#### /usr/sbin/update-smart-drivedb\n\nfull path of this script.\n\n#### /usr/sbin/smartctl\n\nused to check syntax of new drive database.\n\n#### /var/lib/smartmontools/drivedb/drivedb.h\n\ncurrent drive database.\n\n#### /var/lib/smartmontools/drivedb/drivedb.h.raw\n\ncurrent drive database with unexpanded SVN Id string.\n\n#### /var/lib/smartmontools/drivedb/drivedb.h.raw.asc\n\nsignature 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\n#### /var/lib/smartmontools/drivedb/drivedb.h.lastcheck\n\nempty file created if downloaded file was identical.\n\n### AUTHORS\n\nChristian Franke.\nThis manual page was originally written by Hannes von Haugwitz <hannes@vonhaugwitz.com>.\n\n### REPORTING BUGS\n\nTo 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### SEE ALSO\n\nsmartctl(8), smartd(8).\n\n### PACKAGE VERSION\n\nsmartmontools-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)\n\n"
        }
    ],
    "structuredContent": {
        "command": "update-smart-drivedb",
        "section": "8",
        "mode": "man",
        "summary": "update-smart-drivedb - update smartmontools drive database",
        "synopsis": "update-smart-drivedb [OPTIONS] [DESTFILE]",
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-s SMARTCTL",
                        "lines": 3,
                        "flag": "-s",
                        "arg": "SMARTCTL"
                    },
                    {
                        "name": "-t TOOL",
                        "lines": 3,
                        "flag": "-t",
                        "arg": "TOOL"
                    },
                    {
                        "name": "-u LOCATION",
                        "lines": 8,
                        "flag": "-u",
                        "arg": "LOCATION"
                    },
                    {
                        "name": "--trunk",
                        "lines": 3,
                        "long": "--trunk"
                    },
                    {
                        "name": "--branch X.Y",
                        "lines": 4,
                        "long": "--branch"
                    },
                    {
                        "name": "--cacert FILE",
                        "lines": 2,
                        "long": "--cacert",
                        "arg": "FILE"
                    },
                    {
                        "name": "--capath DIR",
                        "lines": 2,
                        "long": "--capath",
                        "arg": "DIR"
                    },
                    {
                        "name": "--insecure",
                        "lines": 3,
                        "long": "--insecure"
                    },
                    {
                        "name": "--no-verify",
                        "lines": 2,
                        "long": "--no-verify"
                    },
                    {
                        "name": "--export-key",
                        "lines": 2,
                        "long": "--export-key"
                    },
                    {
                        "name": "--dryrun",
                        "lines": 2,
                        "long": "--dryrun"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    }
                ]
            },
            {
                "name": "EXAMPLES",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "EXIT STATUS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 1,
                "subsections": [
                    {
                        "name": "/usr/sbin/update-smart-drivedb",
                        "lines": 2
                    },
                    {
                        "name": "/usr/sbin/smartctl",
                        "lines": 2
                    },
                    {
                        "name": "/var/lib/smartmontools/drivedb/drivedb.h",
                        "lines": 2
                    },
                    {
                        "name": "/var/lib/smartmontools/drivedb/drivedb.h.raw",
                        "lines": 2
                    },
                    {
                        "name": "/var/lib/smartmontools/drivedb/drivedb.h.raw.asc",
                        "lines": 8
                    },
                    {
                        "name": "/var/lib/smartmontools/drivedb/drivedb.h.lastcheck",
                        "lines": 3
                    }
                ]
            },
            {
                "name": "AUTHORS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PACKAGE VERSION",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}