The SONiC Installer is a command-line utility included with the SONiC software. It allows users to install an alternate image on a designated partition if the device is already running SONiC. This tool facilitates the installation of a new image, displays available images, and sets the image to be used on the next reboot.
The sonic-installer install
command is utilized to install a new image onto the alternate image partition. It requires the path to an installable SONiC image or a URL.
Usage:sonic-installer install
<image_name>
The sonic-installer list
command provides details about the images currently installed, the image currently in use, and the image designated for the next reboot.
Usage:sonic-installer list
The sonic-installer set_default
command changes the default image that will be loaded in all subsequent reboots.
Usage:sonic-installer set_default <image_name>
The sonic-installer set_next_boot
command specifies the image to be loaded on the next reboot only. The device will revert to the current image on all subsequent reboots.
Usage:sonic-installer set_next_boot <image_name>
The sonic-installer remove
command deletes an unused SONiC image from the disk. Note that the currently running image cannot be removed.
Usage:sonic-installer remove <image_name>