---
title: AsterNOS Uninstallation and Upgrade
slug: aidc/asternos-uninstallation-and-upgrade
description: Procedures for uninstalling and upgrading AsterNOS systems
createdAt: 2026-01-15T06:34:48.082Z
---

## <font color="#1d50a2">Uninstall AsterNOS</font>

We support uninstalling software that are not currently in use in AsterNOS, and we also support uninstalling all AsterNOS systems via ONIE to erase the disk of the entire partition where AsterNOS is located.

### <font color="#1d50a2">Uninstall Non-Current AsterNOS</font>

- Run **show image** command to view the current AsterNOS system.
  **Example:**

:::CodeblockTabs{indent="1"}
```null
sonic# show image
Current: AsterNOS_V3.1_R0406P01
Next: AsterNOS_V3.1_R0406P01
Available:
AsterNOS_V3.1_R0406P01
SONiC-OS-CX-NB-2.5
```
:::

- Run **sonic-installer remove** ***\<version\_name>*** command to uninstall older version.
  **Example:**

:::CodeblockTabs{indent="1"}
```null
sonic# system bash
admin@sonic:~$ sudo sonic-installer remove SONiC-OS-CX-NB-2.5
```
:::

### <font color="#1d50a2">Remove All AsterNOS Systems</font>

- Log in to the switch through the serial port and then run **reboot** command. Wait for a while until the system selection window appears. Please select **ONIE** within 10 seconds or it will default to enter AsterNOS.
- Later you will enter ONIE GRUB Menu and select **ONIE: Uninstall OS**. This will take a while to erase all AsterNOS systems and format the partitions.

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/7nBlJ5ABB4p2oZtOYJ3q--20260116-054541.png" size="100" width="584" height="340" position="center" showCaption="false" indent="1"}

- Wait for some time until the removal is complete, the system will automatically reboot and enter ONIE: Install OS.

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/ADD9uvwtrbKC4hNpXXNZn-20260116-054653.png" size="100" width="455" height="301" position="center" showCaption="false" indent="1"}

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/_qNzshwj03j1l0Ujax6Jj-20260116-054721.png" size="100" width="503" height="305" position="center" showCaption="false" indent="1"}

## <font color="#1d50a2">Upgrade AsterNOS</font>

:::hint{type="info"}
**NOTE:**

- While  upgrading in AsterNOS, the original configuration will inherit.
- The switch supports deployment of two versions of AsterNOS software. Run `sonic# image switch <version name> `command to bring back to the previous version and reboot the switch to take effect.
:::

- Copy the new version of AsterNOS software image to the switch via scp or other methods.

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/QzA21syX990k_CQFwOle0-20260116-054755.png" size="100" width="905" height="53" position="center" showCaption="false" indent="1"}

- Log in to the switch through SSH.

:::CodeblockTabs{indent="1"}
```null
ssh admin@10.250.0.232
```
:::

- Execute the following command to install.

:::CodeblockTabs{indent="1"}
```null
image update AsterNOS_V3.1_R0406P01-BRCM.bin
```
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/BTyEAQZmBOw-CL2jxvQL1-20260116-054826.png" size="100" width="1298" height="626" position="center" showCaption="false" indent="1"}

- View the information of AsterNOS system images present in the switch currently.

:::CodeblockTabs{indent="1"}
```null
show image
```
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/7UrImhCFVD1kL_p21sd0e-20260116-054933.png" size="100" width="302" height="99" position="center" showCaption="false" indent="1"}

- The new version takes effect after you reboot the switch.

:::CodeblockTabs{indent="1"}
```null
reboot
```
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/XQF2dM7uTvkjNlxoAD0gJ-20260116-055028.png" size="100" width="552" height="322" position="center" showCaption="false" indent="1"}

- Re-login to the switch and check the version information. Now the upgrade is complete.

:::CodeblockTabs{indent="1"}
```null
show version
```
:::

::Image[]{src="https://api.archbee.com/api/optimize/zl-MD6bX0o2Ab3p8w66u1/nhq9_8cVVVmnYcIIX2upX-20260116-055122.png" size="100" width="884" height="743" position="center" showCaption="false" indent="1"}

