diff --git a/xbps-src/shutils/pkgtarget_funcs.sh.in b/xbps-src/shutils/pkgtarget_funcs.sh.in index 20bc9e0f1f..d53222e2cd 100644 --- a/xbps-src/shutils/pkgtarget_funcs.sh.in +++ b/xbps-src/shutils/pkgtarget_funcs.sh.in @@ -173,7 +173,8 @@ install_pkg() # if [ -n "$XBPS_PREFER_BINPKG_DEPS" -a -z "$doing_deps" ]; then msg_normal "Removing binary package dependencies...\n" - ${XBPS_BIN_CMD} -Rpyf autoremove + ${fakeroot_cmd} ${fakeroot_cmd_args} \ + ${XBPS_BIN_CMD} -Rpyf autoremove fi return $? }