table of contents
| R2PM(1) | General Commands Manual | R2PM(1) |
NAME¶
r2pm — radare2
package manager
SYNOPSIS¶
r2pm |
[[adhHIipuUglsv]] [[pkg ...]] |
DESCRIPTION¶
Allows to install, update, uninstall and discover plugins and tools that can be used with radare2.
-a,repo- Adds an external r2pm repository, no arguments to -a will list all the registered repos, use '-a - repo' to unregister/remove those repos.
-I- Show information about repository and installed packages
-ipkgname- Install a package
-epkgname- Open the package script with your favourite editor
-dpkgname- Show source code of the r2pm package
-gipkgname- Install a package in the system directory
-upkgname- Uninstall a package
-uupkgname- Force uninstall a package
-Upkgname- Initialize or Update the package database
-gupkgname- Uninstall a package from the system directory
-l- List installed packages
-skeyword- Search in database for packages matching keyword
-rcommand ...args- Run command with R2PM_BINDIR in PATH
-p- Requires -c to clean the R2PM_PLUGDIR
-v- Show version information
-h- Show usage help message
-H- List all special env-vars defined by r2pm internally
-Henv-var-name- Show value of given internal environment variable
-c- Clean the source cache
EXAMPLES¶
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
ENVIRONMENT¶
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=
SEE ALSO¶
| September 21, 2022 |