在线安装:
# curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-10.2" --mariadb-maxscale-version="2.3"
# yum install MariaDB-server maxscale
Option | Description |
---|---|
--help | Display a usage message and exit. |
--mariadb-server-version= <version> | Override the default MariaDB Server version. By default, the script will use 'mariadb-10.4'. |
--mariadb-maxscale-version= <version> | Override the default MariaDB MaxScale version. By default, the script will use '2.4'. |
--os-type= <type> | Override detection of OS type. Acceptable values include debian , ubuntu , rhel , and sles . |
--os-version= <version> | Override detection of OS version. Acceptable values depend on the OS type you specify. |
--skip-key-import | Skip importing GPG signing keys. |
--skip-server | Skip the 'MariaDB Server' repository. |
--skip-maxscale | Skip the 'MaxScale' repository. |
--skip-tools | Skip the 'Tools' repository. |
--write-to-stdout | Write output to stdout instead of to the OS's repository configuration file. This will also skip importing GPG public keys and updating the package cache on platforms where that behavior exists. |
Reference:
1. https://mariadb.com/kb/en/mariadb-package-repository-setup-and-usage/