# Upgrade

## Manually

```
cd $HOME
rm -rf gitopia
git clone https://github.com/gitopia/gitopia.git
cd gitopia
git checkout v6.0.0
make build
sudo systemctl restart gitopiad
sudo journalctl -u gitopiad -f --no-hostname -o cat
```

### Auto

```
cd $HOME && \
wget -O gitopiad.tar.gz https://github.com/gitopia/gitopia/releases/download/v6.0.0/gitopiad_6.0.0_linux_amd64.tar.gz && \
tar -xzf gitopiad.tar.gz && \
chmod +x $HOME/gitopiad && \
old_bin_path=$(which gitopiad) && \
home_path=$HOME && \
rpc_port=$(grep -m 1 -oP '^laddr = "\K[^"]+' "$HOME/.gitopia/config/config.toml" | cut -d ':' -f 3) && \
tmux new -s gitopia-upgrade "sudo bash -c 'curl -s https://raw.githubusercontent.com/appieasahbie/testnet-guides/main/utils/autoupgrade/upgrade.sh | bash -s -- -u \"44200946\" -b \"$HOME/gitopiad\" -n \"$HOME/gitopiad\" -o \"$old_bin_path\" -h \"$home_path\" -p \"https://api.gitopia.aknodes.net//cosmos/gov/v1/proposals/35\" -r \"$rpc_port\"'"

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://services.aknodes.com/mainnet-networks/lava/gitopia/upgrade.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
