diff --git a/xbps-src b/xbps-src index c6c55de63b5..48cf983958d 100755 --- a/xbps-src +++ b/xbps-src @@ -44,6 +44,9 @@ clean [pkgname] If argument is specified, package files from /destdir and its build directory in /buiddir are removed. +clean-repocache + Removes obsolete packages from /repocache. + configure Configure a package (fetch + extract + configure). @@ -709,6 +712,10 @@ case "$XBPS_TARGET" in remove_pkg $XBPS_CROSS_BUILD fi ;; + clean-repocache) + export XBPS_TARGET_ARCH="${XBPS_CROSS_BUILD:-$XBPS_TARGET_MACHINE}" + $XBPS_REMOVE_CMD -C /dev/null -c $XBPS_HOSTDIR/repocache -O + ;; consistency-check) consistency_check ;;