mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-19 04:12:46 +00:00
r2pm: Add offline option for installation ##r2pm
This commit is contained in:
parent
658239c1c6
commit
bff04d1ac9
@ -225,6 +225,7 @@ upgradeOutdated() {
|
||||
}
|
||||
|
||||
r2pm_update() {
|
||||
[ "${R2PM_OFFLINE}" != 0 ] && return
|
||||
[ -z "$R2PM_DBDIR" ] && R2PM_DBDIR="${R2PM_USRDIR}/db"
|
||||
mkdir -p "${R2PM_GITDIR}"
|
||||
mkdir -p "${HOME}/.config"
|
||||
|
@ -54,6 +54,10 @@ Install a test package (don't git pull on $R2PM_GITDIR/yara3)
|
||||
.Pp
|
||||
$ R2PM_GITSKIP=1 r2pm install yara3
|
||||
.Pp
|
||||
Avoid init/update calls (don't git pull on $R2PM_DBDIR)
|
||||
.Pp
|
||||
$ R2PM_OFFLINE=1 r2pm -i yara
|
||||
.Pp
|
||||
Uninstall a package
|
||||
.Pp
|
||||
$ r2pm uninstall yara3
|
||||
|
Loading…
x
Reference in New Issue
Block a user