Snap is the new package format that Ubuntu is pushing for many of its applications instead of the Deb package (installed using apt). The main advantage is that the snap package is self contained and so that allows developers to push new versions of their package directly without requiring integration with the Ubuntu package repository or its specific versions of libraries.
find
command to search for packages:$ snap find foobar
$ snap info foobar
Info includes descriptions, the channels available for this package (stable, beta etc.) and the versions in those channels.
$ sudo snap install foobar
To install from a different channel, beta for example:
$ sudo snap install foobar --channel beta
$ sudo snap remove foobar
$ snap list
Reference:
Tried with: Snap 2.59.5 and Ubuntu 22.04