> For the complete documentation index, see [llms.txt](https://websoft9.gitbook.io/gitlab-image-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://websoft9.gitbook.io/gitlab-image-guide/gitlab-jing-xiang-shou-ce-1/sheng-ji.md).

# 升级

对于使用了Omnibus GitLab安装方式的镜像来说，系统的更新（包括GitLab的更新、依赖组件的更新、操作系统的更新）只需通过一条命令即可完成。注意：升级之前请使用快照镜像完整备份，以保证备份出现差错或反悔之后能够复原。

如果计划升级，请使用Putty工具登录到系统，根据操作系统的类型选择运行对应的命令：

```
# Debian/Ubuntu
sudo apt-get update
sudo apt-get install gitlab-ce

# Centos/RHEL
sudo yum install gitlab-ce
```

详细升级说明和更多的升级方式请参考官方手册[GitLab升级文档](https://docs.gitlab.com/omnibus/update/README.html#updating-from-gitlab-66-and-higher-to-the-latest-version)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://websoft9.gitbook.io/gitlab-image-guide/gitlab-jing-xiang-shou-ce-1/sheng-ji.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
