# update-smart-drivedb(8) - man - phpMan

[UPDATE-SMART-DRIVEDB(8)](https://www.chedong.com/phpMan.php/man/UPDATE-SMART-DRIVEDB/8/markdown)                SMART Monitoring Tools                [UPDATE-SMART-DRIVEDB(8)](https://www.chedong.com/phpMan.php/man/UPDATE-SMART-DRIVEDB/8/markdown)



## NAME
       update-smart-drivedb - update smartmontools drive database


## SYNOPSIS
       **update-smart-drivedb** [_OPTIONS_] [_DESTFILE_]


## DESCRIPTION
       [This man page is generated for the Linux version of smartmontools.  It does not contain info
       specific to other platforms.]

       **update-smart-drivedb**  updates  **/var/lib/smartmontools/drivedb/drivedb.h**  or   _DESTFILE_   from
       branches/RELEASE_7_2_DRIVEDB of smartmontools SVN repository.

       The tools used for downloading are either [**curl**(1)](https://www.chedong.com/phpMan.php/man/curl/1/markdown), [**wget**(1)](https://www.chedong.com/phpMan.php/man/wget/1/markdown), [**lynx**(1)](https://www.chedong.com/phpMan.php/man/lynx/1/markdown), or [**svn**(1)](https://www.chedong.com/phpMan.php/man/svn/1/markdown).

       The  downloaded  file  is verified with OpenPGP/GPG key ID 721042C5.  The public key block is
       included in the script.

       The old file is kept if the downloaded file is identical  (ignoring  the  differences  in  Id
       string) otherwise it is moved to **drivedb.h.old**.


## OPTIONS
### -s SMARTCTL
              Use  the [**smartctl**(8)](https://www.chedong.com/phpMan.php/man/smartctl/8/markdown) executable at path SMARTCTL for drive database syntax check.  The
              form '-s -' disables the syntax check.  The default is **/usr/sbin/smartctl**.

### -t TOOL
              Use TOOL for download.  TOOL is one of: _curl_ _wget_ _lynx_ _svn_.  The default is the  first
              one found in PATH.

### -u LOCATION
              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_.

### --trunk
              Download  from  SVN  trunk.   This  requires '--no-verify' unless the trunk version is
              still identical to branches/RELEASE_7_2_DRIVEDB.

### --branch X.Y
              [NEW   EXPERIMENTAL   UPDATE-SMART-DRIVEDB   FEATURE]   Download   from   branches/RE‐
              LEASE_**X**_**Y**_DRIVEDB.   This also selects the OpenPGP/GPG key for older branches (5.40 to
              6.6: Key ID DFD22559).

### --cacert FILE
              Use CA certificates from FILE to verify the peer.

### --capath DIR
              Use CA certificate files from DIR to verify the peer.

### --insecure
              Don't abort download if certificate verification fails.  This option is also  required
              if a HTTP URL is selected with '-u' option.

### --no-verify
              Don't verify signature with GnuPG.

### --export-key
              Print the OpenPGP/GPG public key block.

### --dryrun
              Print download commands only.

### -v


## EXAMPLES
       # update-smart-drivedb
       /var/lib/smartmontools/drivedb/drivedb.h updated from \
       branches/RELEASE_7_2_DRIVEDB


## EXIT STATUS
       The  exit  status is 0 if the database has been successfully updated.  If an error occurs the
       exit status is 1.


## FILES
### /usr/sbin/update-smart-drivedb
              full path of this script.

### /usr/sbin/smartctl
              used to check syntax of new drive database.

### /var/lib/smartmontools/drivedb/drivedb.h
              current drive database.

### /var/lib/smartmontools/drivedb/drivedb.h.raw
              current drive database with unexpanded SVN Id string.

### /var/lib/smartmontools/drivedb/drivedb.h.raw.asc
              signature file.

       **/var/lib/smartmontools/drivedb/drivedb.h.*old***
              previous files.

       **/var/lib/smartmontools/drivedb/drivedb.h.*error***
              new files if rejected due to errors.

### /var/lib/smartmontools/drivedb/drivedb.h.lastcheck
              empty file created if downloaded file was identical.


## AUTHORS
       **Christian** **Franke**.
       This manual page was originally written by **Hannes** **von** **Haugwitz** **<<hannes@vonhaugwitz.com>>**.


## REPORTING BUGS
       To submit a bug report, create a ticket in smartmontools wiki:
       <**<https://www.smartmontools.org/>**>.
       Alternatively send the info to the smartmontools support mailing list:
       <**<https://listi.jpberlin.de/mailman/listinfo/smartmontools-support>>.**


## SEE ALSO
       [**smartctl**(8)](https://www.chedong.com/phpMan.php/man/smartctl/8/markdown), [**smartd**(8)](https://www.chedong.com/phpMan.php/man/smartd/8/markdown).


## PACKAGE VERSION
       smartmontools-7.2 2020-12-30 r5155
       $Id: update-smart-drivedb.8.in 5112 2020-11-07 11:41:13Z chrfranke $



smartmontools-7.2                            2020-12-30                      [UPDATE-SMART-DRIVEDB(8)](https://www.chedong.com/phpMan.php/man/UPDATE-SMART-DRIVEDB/8/markdown)
