Best Practice Guide – Deploy system apt update & upgrade

This guide goes over the best practice to create a system apt update & upgrade to Linux based devices. The best practice guidelines are taught how to fill and create a new control center command and run it on a group of devices.

The Control center command approach

This approach uses the Control center tool to send ready-to-use BASH commands on Linux based devices. Using this tool, we can update the Linux device system OS and libraries.

This guide is only for devices that have an ‘apt’ package manager installed.

Guidelines

1. Under the ‘Control Center’ category, fill the command window with the next command:

DEBIAN_FRONTEND=noninteractive apt -y update;
DEBIAN_FRONTEND=noninteractive apt -y upgrade; reboot

In some cases, apt update and apt upgrade commands require user input and can be stacked until a yes/no input will be entered. To deal with the situation in the best way, it is recommended to run the command above. This command takes care of user inputs if needed or any GUI installation process automatically. As ‘apt upgrade’ may upgrade core Linux packages which can damage JFrog Connect agent stability, we recommend adding a reboot command after the upgrade is done.  

2. Click on the favorite button and set a name from the command, for example: System update.

3. Run the command from the saved commands on the specific device or groups as needed.

JFrog Connect is a modern Linux-first IoT platform designed to efficiently update, control and monitor edge and IoT devices at scale.