Application to create a Grype vulnerability database from upstream vulnerability data sources.
Note: Currently, Grype-DB is built only for Linux and macOS.
curl -sSfL https://raw.githubusercontent.com/anchore/grype-db/main/install.sh | sh -s -- -b /usr/local/bin
... or, you can specify a release version and destination directory for the installation:
curl -sSfL https://raw.githubusercontent.com/anchore/grype-db/main/install.sh | sh -s -- -b <DESTINATION_DIR> <RELEASE_VERSION>
Important
You will require the zstd
utility installed on your system to support the package
command.
grype-db
takes the following options:
grype-db [-g] [--dir=DIR] [--schema=SCHEMA] [--skip-validation] [--publish-base-url=URL] [-p PROVIDER ...]
To pull data from a specific provider or providers and build the database in one step, run grype-db
with the -g
flag and specify providers with the -p
flag:
grype-db -g -p nvd
This example will build the database for the nvd
provider. Multiple providers can be specified.
If no providers are specified, grype-db
defaults to all available providers as generated by vunnel list
. However, note that that accessing GitHub provider data requires a token to authenticate to the GitHub API. See Getting Started Step-by-Step for more information on adding a GitHub token.)
To download all provider data and build the vulnerability.db
database, run:
grype-db -g