# Updating NXP Gazebo

## Guide

Most of the folders in NXP Gazebo are stored in git repositories. This makes it easy to update to the latest software. To update, copy the script at the bottom of the page and paste it into a file called "update\_nx&#x70;*\_*&#x67;azebo.sh". Then, run the command below:

```
$ chmod a+x update_nxp_gazebo.sh
```

{% hint style="warning" %}
**NOTE**: This will apply to most NXP Gazebo Summer Camp participants -

If you have made edits to the files in any of these repositories, it is recommended to make a backup of those files before running this. There could be merge conflicts and we will handle those on a case by case basis.
{% endhint %}

```
#!/bin/bash

cd ~/ros2ws/nxp_gazebo/ && git pull
cd ~/ros2ws/nxp_gazebo/ && git pull
cd ~/ros2ws/gazebo_apriltag/ && git pull
cd ~/ros2ws/src/aim_line_follow_c/ && git pull
cd ~/ros2ws/src/nxp_cup_interfaces/ && git pull
cd ~/ros2ws/src/nxp_cup_vision/ && git pull
cd ~/ros2ws/src/sim_gazebo_bringup && git pull
```


---

# 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://nxp.gitbook.io/nxp-cup/gazebo/updating-nxp-gazebo.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.
