radare2 is also available as a snap package and can be installed on a system that supports snap packages. See [Installing snapd](https://snapcraft.io/docs/installing-snapd) to setup your system to support snap packages.
Currently, radare2 is available as a _beta_ snap package that works in _devmode_ security confinement (developer mode). Refer back to this section for updated instructions when radare2 is out of _beta/devmode_.
Snap packages that work in _devmode_ security confinement do not appear in search results, when you search for them in the Snap Store. To find information about this snap package, run `snap info radare2`. See the section below on this.
This command installs the `radare2` snap package from the _beta_ channel, using the _devmode_ (developer mode) security confinement type. The _devmode_ security confinement disables any restrictions that are applied to typical snap packages. _devmode_ makes a package to work similar to APT and RPM packages.
-`radare2` or `radare2.radare2`: The `r2`/`radare2` command.
-`radare2.r2pm` : The `r2pm` command.
-`radare2.r2agent` : The `r2agent` command.
-`radare2.rafind2` : The `rafind2` command.
-`radare2.rahash2` : The `rahash2` command.
-`radare2.rasm2` : The `rasm2` command.
-`radare2.rabin2` : The `rabin2` command.
-`radare2.radiff2` : The `radiff2` command.
-`radare2.ragg2` : The `ragg2` command.
-`radare2.rarun2` : The `rarun2` command.
-`radare2.rax2` : The `rax2` command.
-`radare2.rasign2` : The `rasign2` command.
Getting info about the radare2 snap package
-------------------------------------------
Run the following command to get info about the radare2 snap package. You can see the list of available commands and how to invoke them. There are packages in the `beta` and `edge` channels, currently with radare2 4.5.0. The build number in this example is 5, and is an ascending number that characterises each new build. We have installed radare 4.5.0 from build 5, using the _devmode_ security confinement. We are _tracking_ the `beta` channel. Since the installed build number is the same as the build number in the channel that we are tracking, we are already running the latest available version.
Run the following command to uninstall the snap package of radare2:
$ sudo snap remove radare2
Supported architectures
=======================
The radare2 snap package is currently available for the following architectures:
1.`amd64`
1.`i386`
1.`arm64`
1.`armhf`
1.`ppc64el`
1.`s390x`
Troubleshooting
---------------
- _error: snap "radare2" is not available on stable_: When installing the snap package of radare2, you currently need to specify the _beta_ channel. Append `--channel=beta` on the installation command line.
- _error: The publisher of snap "radare2" has indicated that they do not consider this revision to be of production quality_: When installing the snap package of radare2, you currently need to specify the _devmode_ confinement. Append `--devmode` on the installation command line.
- _How can I download the snap package for offline use?_: Use the command `snap download radare2 --channel=beta`. You can then run `sudo snap install` to install the `.snap` package that was just downloaded.
- _Do I need to use "sudo" with snap commands?_: You need to prepend `sudo` when you run most snap commands that perform privileged actions. However, if you log in into the Snap Store using `sudo snap login`, then you do not need anymore to prepend `sudo`.