2021-12-05 09:44:22 +08:00
|
|
|
.Dd Dec 5, 2021
|
2015-10-02 12:04:07 +08:00
|
|
|
.Dt R2PM 1
|
|
|
|
.Sh NAME
|
|
|
|
.Nm R2PM
|
|
|
|
.Nd radare2 package manager
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm r2pm
|
2016-06-08 05:42:08 +08:00
|
|
|
.Op init|update|cmd
|
2015-10-02 12:04:07 +08:00
|
|
|
.Op ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
Allows to install, update, uninstall and discover plugins and tools that can be used with radare2.
|
|
|
|
.Bl -tag -width Fl
|
2017-01-18 07:22:56 +08:00
|
|
|
.It Fl a, Cm repo
|
|
|
|
Adds an external r2pm repository, no arguments to -a will list all the registered repos, use '-a - repo' to unregister/remove those repos.
|
2019-07-30 10:20:28 +08:00
|
|
|
.It Fl I, Cm info
|
2015-10-02 12:04:07 +08:00
|
|
|
Show information about repository and installed packages
|
|
|
|
.It Fl i, Cm install Ar pkgname
|
|
|
|
Install a package
|
2016-05-16 05:54:47 +08:00
|
|
|
.It Fl gi, Cm global-install Ar pkgname
|
|
|
|
Install a package in the system directory
|
2015-10-02 12:04:07 +08:00
|
|
|
.It Fl u, Cm uninstall Ar pkgname
|
|
|
|
Uninstall a package
|
2021-12-05 09:44:22 +08:00
|
|
|
.It Fl uu Ar pkgname
|
|
|
|
Force uninstall a package
|
2021-06-15 18:09:27 +08:00
|
|
|
.It Fl U, Cm Upgrade all the outdated packages
|
|
|
|
Runs the suggested lines when loading outdated plugins by r2
|
2016-05-16 05:54:47 +08:00
|
|
|
.It Fl gu, Cm global-install Ar pkgname
|
|
|
|
Uninstall a package from the system directory
|
2015-10-02 12:04:07 +08:00
|
|
|
.It Fl l, Cm list
|
|
|
|
List installed packages
|
|
|
|
.It Fl s, Cm search Ar keyword
|
|
|
|
Search in database for packages matching keyword
|
2016-08-05 07:20:43 +08:00
|
|
|
.It Fl r, Cm run Ar command ...args
|
|
|
|
Run command with R2PM_BINDIR in PATH
|
2015-10-02 12:04:07 +08:00
|
|
|
.It Fl v, Cm version
|
|
|
|
Show version information
|
|
|
|
.It Fl h, Cm help
|
|
|
|
Show usage help message
|
|
|
|
.It Fl c, Cm clean
|
|
|
|
Clean the source cache
|
2016-09-13 07:01:29 +08:00
|
|
|
.It Fl w, Cm when
|
|
|
|
Show when a package was installed or exit 1 if pkg does not exist
|
2015-10-02 12:04:07 +08:00
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
.Pp
|
2016-06-08 05:42:08 +08:00
|
|
|
Initialize and update the package database
|
|
|
|
.Pp
|
|
|
|
$ r2pm init
|
|
|
|
$ r2pm update
|
|
|
|
.Pp
|
2015-10-02 12:04:07 +08:00
|
|
|
Install a package
|
|
|
|
.Pp
|
|
|
|
$ r2pm install yara3
|
|
|
|
.Pp
|
2020-10-17 16:43:46 +08:00
|
|
|
Install a test package (don't git pull on $R2PM_GITDIR/yara3)
|
|
|
|
.Pp
|
|
|
|
$ R2PM_GITSKIP=1 r2pm install yara3
|
|
|
|
.Pp
|
2021-08-31 23:09:58 +08:00
|
|
|
Avoid init/update calls (don't git pull on $R2PM_DBDIR)
|
|
|
|
.Pp
|
|
|
|
$ R2PM_OFFLINE=1 r2pm -i yara
|
|
|
|
.Pp
|
2015-10-02 12:04:07 +08:00
|
|
|
Uninstall a package
|
|
|
|
.Pp
|
|
|
|
$ r2pm uninstall yara3
|
|
|
|
.Pp
|
|
|
|
Search a package
|
|
|
|
.Pp
|
|
|
|
$ r2pm search yara
|
|
|
|
.Pp
|
|
|
|
List available packages
|
|
|
|
.Pp
|
|
|
|
$ r2pm -s
|
2021-07-01 03:57:19 +08:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Pp
|
|
|
|
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=
|
2015-10-02 12:04:07 +08:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Pp
|
|
|
|
.Xr radare2(1)
|