Scroll to navigation

R2PM(1) General Commands Manual R2PM(1)

NAME

r2pmRadare2 Package Manager

SYNOPSIS

r2pm [-acdeHhijlpqrRstuUvw] [pkgs...]

DESCRIPTION

The package manager for Radare2, allowing installation, update, uninstallation, and discovery of plugins and tools.

repository
Add or delete external repository. Using '-a repository' adds a repository, and '-a -repository' deletes it. Use with no arguments to list all registered repos.
[git/dir]
Clear source cache for specified git directory or all if not provided
doc pkgname
Show documentation and source for given package script
pkgname
Edit using $EDITOR the given package script
Force operation (Use in combination of -U, -i, -u, ..)
pkg
Global install (system-wide)
Display help message
[variable]
List all or selected r2pm environment variables
pkgname
Install/update package and its dependencies
Information about the repository and installed packages
JSON output
List installed packages
Be quiet
cmd ...args
Run shell command with R2PM_BINDIR in PATH
pkgname
Reload plugin (See R2PM_RELOAD code block package)
[keyword]
Search available packages in database matching a string. Return error code if no package was found
YYYY-MM-DD
Set a moment in time to pull the code from the git packages
pkgname
Uninstall package (see -f to force uninstall)
pkgname
Uninstall + clean + install
pkgname
Uninstall + install
Download/initialize or update database (-f for a clean clone)
Same as -U but upgrade all the installed r2 plugins
Show version

ENVIRONMENT

Command to use for system-wide installs (default: sudo)
Directory for user plugins (default: ~/.local/share/radare2/plugins)
Directory for user binaries (default: ~/.local/share/radare2/prefix/bin)
Disable online operations (default: 0)
Directory for r2pm database (default: ~/.local/share/radare2/r2pm/db)
Directory for git repositories (default: ~/.local/share/radare2/r2pm/git)
Skip git pull operations when set
Point in time to use for git checkout (format: YYYY-MM-DD)
Control verbosity of log messages
Directory for include files
Directory for libraries
Installation prefix

EXAMPLES

Install a package


$ r2pm -i yara3

Clean cache and then install (don't git pull on $R2PM_GITDIR/yara3)


$ 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

Force uninstall a package


$ r2pm -fu yara3

Search a package


$ r2pm -s yara

List installed packages


$ r2pm -l

Update database and upgrade all installed packages


$ r2pm -UU

SEE ALSO

radare2(1)

AUTHORS

Written by pancake <pancake@nopcode.org>.

July 10, 2025