R2PM(1) General Commands Manual R2PM(1)

R2PMradare2 package manager

r2pm [init|update|cmd] [...]

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.
info
Show information about repository and installed packages
install pkgname
Install a package
global-install pkgname
Install a package in the system directory
uninstall pkgname
Uninstall a package
Upgrade all the outdated packages
Runs the suggested lines when loading outdated plugins by r2
global-install pkgname
Uninstall a package from the system directory
list
List installed packages
search keyword
Search in database for packages matching keyword
run command ...args
Run command with R2PM_BINDIR in PATH
version
Show version information
help
Show usage help message
clean
Clean the source cache
when
Show when a package was installed or exit 1 if pkg does not exist

Initialize and update the package database


$ r2pm init
$ r2pm update

Install a package


$ r2pm install yara3

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


$ R2PM_GITSKIP=1 r2pm install yara3

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


$ R2PM_OFFLINE=1 r2pm -i yara

Uninstall a package


$ r2pm uninstall yara3

Search a package


$ r2pm search yara

List available packages


$ r2pm -s


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=

radare2(1)

June 30, 2021