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