R2PM(1) General Commands Manual R2PM(1)

r2pmradare2 package manager

r2pm [[adhHIipuUglsv]] [[pkg ...]]

Allows to install, update, uninstall and discover plugins and tools that can be used with radare2.

repo
Adds an external r2pm repository, no arguments to -a will list all the registered repos, use '-a - repo' to unregister/remove those repos.
Show information about repository and installed packages
pkgname
Install a package
pkgname
Open the package script with your favourite editor
pkgname
Show source code of the r2pm package
pkgname
Install a package in the system directory
pkgname
Uninstall a package
pkgname
Force uninstall a package
pkgname
Initialize or Update the package database
pkgname
Uninstall a package from the system directory
List installed packages
keyword
Search in database for packages matching keyword
YYYY-MM-DD
Set the R2PM_TIME env var to tell the time to take package source from git
command ...args
Run command with R2PM_BINDIR in PATH
Requires -c to clean the R2PM_PLUGDIR
Show version information
Show usage help message
List all special env-vars defined by r2pm internally
env-var-name
Show value of given internal environment variable
Clean the source cache

The database is initialized and pulled automatically, all the named actions have been deprecated, use only flags

Install a package


$ r2pm -i yara3

Install a test package (don't git pull on $R2PM_GITDIR/yara3)


$ R2PM_GITSKIP=1 r2pm -ci yara3

Avoid init/update calls (don't git pull on $R2PM_DBDIR)


$ R2PM_OFFLINE=1 r2pm -i yara

Uninstall a package


$ r2pm -u yara3

Search a package


$ r2pm -s yara

List installed packages


$ r2pm -l


SUDO=sudo
R2PM_PLUGDIR=~/.local/share/radare2/plugins
R2PM_BINDIR=~/.local/share/radare2/prefix/bin
R2PM_OFFLINE=0
R2PM_DBDIR=~/.local/share/radare2/r2pm/db
R2PM_GITDIR=~/.local/share/radare2/r2pm/git
R2PM_GITSKIP=
R2PM_TIME=
R2_LOG_LEVEL
R2PM_INCDIR
R2PM_LIBDIR
R2PM_PREFIX
R2PM_LEGACY

radare2(1)

March 13, 2024