# 🛠️  Upgrade

_**Automatic upgrade**_

```bash
source <(curl -s https://raw.githubusercontent.com/validexisinfra/Kusama/main/upgrademain.sh)
```

_**Manual upgrade**_

```bash
cd ~/polkadot-sdk
git fetch --all --tags
git checkout polkadot-v1.19.2
git submodule update --init --recursive
cargo clean
cargo build --release

sudo systemctl stop kusama.service
sudo cp target/release/polkadot* /usr/lib/polkadot/

sudo systemctl restart kusama.service
sudo journalctl -u kusama.service -f
```
