table of contents
- unstable 6.0.4+dfsg-1
- experimental 6.0.2+dfsg-1
R2PM(1) | General Commands Manual | R2PM(1) |
NAME¶
r2pm
— Radare2
Package Manager
SYNOPSIS¶
r2pm |
[-acdeHhijlpqrRstuUvw ]
[pkgs...] |
DESCRIPTION¶
The package manager for Radare2, allowing installation, update, uninstallation, and discovery of plugins and tools.
-a
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.
-c
[git/dir]- Clear source cache for specified git directory or all if not provided
-d,
doc
pkgname- Show documentation and source for given package script
-e
pkgname- Edit using $EDITOR the given package script
-f
- Force operation (Use in combination of -U, -i, -u, ..)
-gi
pkg- Global install (system-wide)
-h
- Display help message
-H
[variable]- List all or selected r2pm environment variables
-i
pkgname- Install/update package and its dependencies
-I
- Information about the repository and installed packages
-j
- JSON output
-l
- List installed packages
-q
- Be quiet
-r
cmd ...args- Run shell command with R2PM_BINDIR in PATH
-R
pkgname- Reload plugin (See R2PM_RELOAD code block package)
-s
[keyword]- Search available packages in database matching a string. Return error code if no package was found
-t
YYYY-MM-DD- Set a moment in time to pull the code from the git packages
-u
pkgname- Uninstall package (see -f to force uninstall)
-uci
pkgname- Uninstall + clean + install
-ui
pkgname- Uninstall + install
-U
- Download/initialize or update database (-f for a clean clone)
-UU
- Same as -U but upgrade all the installed r2 plugins
-v
- Show version
ENVIRONMENT¶
SUDO
- Command to use for system-wide installs (default: sudo)
R2PM_PLUGDIR
- Directory for user plugins (default: ~/.local/share/radare2/plugins)
R2PM_BINDIR
- Directory for user binaries (default: ~/.local/share/radare2/prefix/bin)
R2PM_OFFLINE
- Disable online operations (default: 0)
R2PM_DBDIR
- Directory for r2pm database (default: ~/.local/share/radare2/r2pm/db)
R2PM_GITDIR
- Directory for git repositories (default: ~/.local/share/radare2/r2pm/git)
R2PM_GITSKIP
- Skip git pull operations when set
R2PM_TIME
- Point in time to use for git checkout (format: YYYY-MM-DD)
R2_LOG_LEVEL
- Control verbosity of log messages
R2PM_INCDIR
- Directory for include files
R2PM_LIBDIR
- Directory for libraries
R2PM_PREFIX
- 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¶
AUTHORS¶
Written by pancake <pancake@nopcode.org>.
July 10, 2025 |