Sponsor:

Your company here, and a link to your site. Click to find out more.

r2pm - Man Page

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

-i pkgname

Install a package

-e pkgname

Open the package script with your favourite editor

-d pkgname

Show source code of the r2pm package

-gi pkgname

Install a package in the system directory

-u pkgname

Uninstall a package

-uu pkgname

Force uninstall a package

-U pkgname

Initialize or Update the package database

-gu pkgname

Uninstall a package from the system directory

-l

List installed packages

-s keyword

Search in database for packages matching keyword

-t YYYY-MM-DD

Set the R2PM_TIME env var to tell the time to take package source from git

-r command ...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

-H env-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=
R2PM_TIME=

See Also

radare2(1)

Info

June 7, 2023