参考网址:https://downloads.mariadb.org/mariadb/repositories/
以ubuntu12.04安装mariadb10为例。具体其他的可以参考给出的参考网址
Here are the commands to run to add MariaDB to your system:
sudo apt-get install python-software-properties sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main'
sudo apt-get install python-software-properties sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main'
Once the key is imported and the repository added you can install MariaDB with:
sudo apt-get update sudo apt-get install mariadb-server
sudo apt-get update sudo apt-get install mariadb-server
See Installing MariaDB .deb Files for more information.
You can also create a custom MariaDB sources.list file. To do so, copy and paste the following into a file under /etc/apt/sources.list.d/(we suggest naming the file MariaDB.list or something similar), or add it to the bottom of your /etc/apt/sources.list file.
#
MariaDB 10.0 repository list - created 2013-06-28 04:25 UTC#
http://mariadb.org/mariadb/repositories/ deb http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main deb-src http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main
#
MariaDB 10.0 repository list - created 2013-06-28 04:25 UTC #
http://mariadb.org/mariadb/repositories/ deb http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main deb-src http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main