1R2PM(1)                   BSD General Commands Manual                  R2PM(1)
2

NAME

4     R2PM — radare2 package manager
5

SYNOPSIS

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

DESCRIPTION

10     Allows to install, update, uninstall and discover plugins and tools that
11     can be used with radare2.
12
13     -a, repo    Adds an external r2pm repository, no arguments to -a will
14                 list all the registered repos, use '-a - repo' to unregis‐
15                 ter/remove those repos.
16
17     -I, info    Show information about repository and installed packages
18
19     -i, install pkgname
20                 Install a package
21
22     -gi, global-install pkgname
23                 Install a package in the system directory
24
25     -u, uninstall pkgname
26                 Uninstall a package
27
28     -U, Upgrade all the outdated packages
29                 Runs the suggested lines when loading outdated plugins by r2
30
31     -gu, global-install pkgname
32                 Uninstall a package from the system directory
33
34     -l, list    List installed packages
35
36     -s, search keyword
37                 Search in database for packages matching keyword
38
39     -r, run command ...args
40                 Run command with R2PM_BINDIR in PATH
41
42     -v, version
43                 Show version information
44
45     -h, help    Show usage help message
46
47     -c, clean   Clean the source cache
48
49     -w, when    Show when a package was installed or exit 1 if pkg does not
50                 exist
51

EXAMPLES

53     Initialize and update the package database
54
55       $ r2pm init
56       $ r2pm update
57
58     Install a package
59
60       $ r2pm install yara3
61
62     Install a test package (don't git pull on $R2PM_GITDIR/yara3)
63
64       $ R2PM_GITSKIP=1 r2pm install yara3
65
66     Avoid init/update calls (don't git pull on $R2PM_DBDIR)
67
68      $ R2PM_OFFLINE=1 r2pm -i yara
69
70     Uninstall a package
71
72       $ r2pm uninstall yara3
73
74     Search a package
75
76       $ r2pm search yara
77
78     List available packages
79
80       $ r2pm -s
81

ENVIRONMENT

83      SUDO=sudo
84      R2PM_PLUGDIR=~/.local/share/radare2/plugins
85      R2PM_BINDIR=~/.local/share/radare2/prefix/bin
86      R2PM_OFFLINE=0
87      R2PM_DBDIR=~/.local/share/radare2/r2pm/db
88      R2PM_GITDIR=~/.local/share/radare2/r2pm/git
89      R2PM_GITSKIP=
90

SEE ALSO

92     radare2(1)
93
94                                 Jun 30, 2021
Impressum