# 一、ODB
## 1. 什么是 OBD?
OBD 全称为 OceanBase Deployer,是 OceanBase 开源软件的安装部署工具。OBD 同时也是包管理器,
可以用来管理 OceanBase 所有的开源软件。
# 二、安装 OBD
## 1. 安装 yum-utils
```s
[root@oceanbase1 ~]# sudo yum install -y yum-utils
Loaded plugins: fastestmirror, langpacks
adding repo from: https://mirrors.aliyun.com/oceanbase/OceanBase.repo
grabbing file https://mirrors.aliyun.com/oceanbase/OceanBase.repo to /etc/yum.re
pos.d/OceanBase.repo
repo saved to /etc/yum.repos.d/OceanBase.repo
[root@oceanbase1 ~]# sudo yum install -y ob-deploy
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.bupt.edu.cn
* extras: mirrors.bupt.edu.cn
* updates: mirrors.bupt.edu.cn
oceanbase.community.stable | 3.0 kB 00:00
oceanbase.development-kit | 3.0 kB 00:00
(1/2): oceanbase.development-kit/7/x86_64/primary_db | 33 kB 00:00
(2/2): oceanbase.community.stable/7/x86_64/primary_db | 39 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package ob-deploy.x86_64 0:1.5.0-12.el7 will be installed
--> Finished Dependency Resolution
...
...
Running transaction
Updating : yum-utils-1.1.31-54.el7_8.noarch 1/2
Cleanup : yum-utils-1.1.31-50.el7.noarch 2/2
Verifying : yum-utils-1.1.31-54.el7_8.noarch 1/2
Verifying : yum-utils-1.1.31-50.el7.noarch 2/2
Updated:
yum-utils.noarch 0:1.1.31-54.el7_8
Complete!
```
## 2. 下载 repo
```s
[root@oceanbase1 ~]# sudo yum-config-manager --add-repo https://mirrors.aliyun.c
om/oceanbase/OceanBase.repo
Loaded plugins: fastestmirror, langpacks
adding repo from: https://mirrors.aliyun.com/oceanbase/OceanBase.repo
grabbing file https://mirrors.aliyun.com/oceanbase/OceanBase.repo to /etc/yum.re
pos.d/OceanBase.repo
repo saved to /etc/yum.repos.d/OceanBase.repo
[root@oceanbase1 ~]# cat /etc/yum.repos.d/OceanBase.repo
# OceanBase.repo
[oceanbase.community.stable]
评论