_apt_get_install.mdx 697 字节
Newer Older
1
`apt-get` can be used to install TDengine from official package repository. 
D
dingbo 已提交
2

3
**Package Repository**
D
dingbo 已提交
4 5 6 7 8 9

```
wget -qO - http://repos.taosdata.com/tdengine.key | sudo apt-key add -
echo "deb [arch=amd64] http://repos.taosdata.com/tdengine-stable stable main" | sudo tee /etc/apt/sources.list.d/tdengine-stable.list
```

10
The repository required for installing beta versions is as below:
D
dingbo 已提交
11 12 13 14 15

```
echo "deb [arch=amd64] http://repos.taosdata.com/tdengine-beta beta main" | sudo tee /etc/apt/sources.list.d/tdengine-beta.list
```

16
**Install With apt-get**
D
dingbo 已提交
17 18 19 20 21 22 23 24

```
sudo apt-get update
apt-cache policy tdengine
sudo apt-get install tdengine
```

:::tip
25
`apt-get` can only be used on Debian or Ubuntu Linux.
D
dingbo 已提交
26
::::