Snap for ROS 2 command line interface tools [1] included with a standard install of any ROS 2 distro.
Note: This is a beta release, if you encounter any bugs or limitations, please do report it [2].
The Snap does not support roslaunch, rospkg, rosrun and custom ROS messages as these require access to the host filesystem.
The ros2-cheat-sheet [3] provides examples for commands and their verbs.
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Enable snapd
On Debian 9 (Stretch) and newer, snap can be installed directly from the command line:
sudo apt update
sudo apt install snapd
After this, install the snapd snap in order to get the latest snapd:
sudo snap install snapd
Install ros2-cli
To install ros2-cli, simply use the following command: