2024-03-13 17:45:16 +00:00
|
|
|
.Dd March 13, 2024
|
2015-10-02 04:04:07 +00:00
|
|
|
.Dt R2PM 1
|
|
|
|
.Sh NAME
|
2022-10-11 21:21:08 +00:00
|
|
|
.Nm r2pm
|
2015-10-02 04:04:07 +00:00
|
|
|
.Nd radare2 package manager
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm r2pm
|
2022-10-29 17:03:41 +00:00
|
|
|
.Op [adhHIipuUglsv]
|
2021-12-17 10:31:38 +00:00
|
|
|
.Op [pkg ...]
|
2015-10-02 04:04:07 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
Allows to install, update, uninstall and discover plugins and tools that can be used with radare2.
|
|
|
|
.Bl -tag -width Fl
|
2017-01-17 23:22:56 +00: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.
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl I
|
2015-10-02 04:04:07 +00:00
|
|
|
Show information about repository and installed packages
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl i Ar pkgname
|
2015-10-02 04:04:07 +00:00
|
|
|
Install a package
|
2022-11-25 01:28:27 +00:00
|
|
|
.It Fl e Ar pkgname
|
|
|
|
Open the package script with your favourite editor
|
2022-09-21 18:24:26 +00:00
|
|
|
.It Fl d Ar pkgname
|
|
|
|
Show source code of the r2pm package
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl gi Ar pkgname
|
2016-05-15 21:54:47 +00:00
|
|
|
Install a package in the system directory
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl u Ar pkgname
|
2015-10-02 04:04:07 +00:00
|
|
|
Uninstall a package
|
2021-12-05 01:44:22 +00:00
|
|
|
.It Fl uu Ar pkgname
|
|
|
|
Force uninstall a package
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl U Ar pkgname
|
2022-09-21 18:24:26 +00:00
|
|
|
Initialize or Update the package database
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl gu Ar pkgname
|
2016-05-15 21:54:47 +00:00
|
|
|
Uninstall a package from the system directory
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl l
|
2015-10-02 04:04:07 +00:00
|
|
|
List installed packages
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl s Ar keyword
|
2015-10-02 04:04:07 +00:00
|
|
|
Search in database for packages matching keyword
|
2023-06-07 15:51:19 +00:00
|
|
|
.It Fl t Ar YYYY-MM-DD
|
|
|
|
Set the R2PM_TIME env var to tell the time to take package source from git
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl r Ar command ...args
|
2016-08-04 23:20:43 +00:00
|
|
|
Run command with R2PM_BINDIR in PATH
|
2022-10-29 17:03:41 +00:00
|
|
|
.It Fl p
|
|
|
|
Requires -c to clean the R2PM_PLUGDIR
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl v
|
2015-10-02 04:04:07 +00:00
|
|
|
Show version information
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl h
|
2015-10-02 04:04:07 +00:00
|
|
|
Show usage help message
|
2022-09-21 18:24:26 +00:00
|
|
|
.It Fl H
|
|
|
|
List all special env-vars defined by r2pm internally
|
|
|
|
.It Fl H Ar env-var-name
|
2023-01-15 15:08:49 +00:00
|
|
|
Show value of given internal environment variable
|
2021-12-17 10:31:38 +00:00
|
|
|
.It Fl c
|
2015-10-02 04:04:07 +00:00
|
|
|
Clean the source cache
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
.Pp
|
2021-12-17 10:31:38 +00:00
|
|
|
The database is initialized and pulled automatically, all the named actions have been deprecated, use only flags
|
2016-06-07 21:42:08 +00:00
|
|
|
.Pp
|
2015-10-02 04:04:07 +00:00
|
|
|
Install a package
|
|
|
|
.Pp
|
2021-12-17 10:31:38 +00:00
|
|
|
$ r2pm -i yara3
|
2015-10-02 04:04:07 +00:00
|
|
|
.Pp
|
2020-10-17 08:43:46 +00:00
|
|
|
Install a test package (don't git pull on $R2PM_GITDIR/yara3)
|
|
|
|
.Pp
|
2021-12-17 10:31:38 +00:00
|
|
|
$ R2PM_GITSKIP=1 r2pm -ci yara3
|
2020-10-17 08:43:46 +00:00
|
|
|
.Pp
|
2021-08-31 15:09:58 +00:00
|
|
|
Avoid init/update calls (don't git pull on $R2PM_DBDIR)
|
|
|
|
.Pp
|
|
|
|
$ R2PM_OFFLINE=1 r2pm -i yara
|
|
|
|
.Pp
|
2015-10-02 04:04:07 +00:00
|
|
|
Uninstall a package
|
|
|
|
.Pp
|
2021-12-17 10:31:38 +00:00
|
|
|
$ r2pm -u yara3
|
2015-10-02 04:04:07 +00:00
|
|
|
.Pp
|
|
|
|
Search a package
|
|
|
|
.Pp
|
2021-12-17 10:31:38 +00:00
|
|
|
$ r2pm -s yara
|
2015-10-02 04:04:07 +00:00
|
|
|
.Pp
|
2021-12-17 10:31:38 +00:00
|
|
|
List installed packages
|
2015-10-02 04:04:07 +00:00
|
|
|
.Pp
|
2021-12-17 10:31:38 +00:00
|
|
|
$ r2pm -l
|
2021-06-30 19:57:19 +00: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=
|
2023-06-07 15:51:19 +00:00
|
|
|
R2PM_TIME=
|
2024-03-17 18:36:24 +00:00
|
|
|
R2_LOG_LEVEL
|
|
|
|
R2PM_INCDIR
|
|
|
|
R2PM_LIBDIR
|
|
|
|
R2PM_PREFIX
|
|
|
|
R2PM_LEGACY
|
2015-10-02 04:04:07 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Pp
|
|
|
|
.Xr radare2(1)
|