From f83a7378c7a7d3a9d188ba3a300a6030cfc1eb16 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Wed, 24 Apr 2024 11:45:25 -0400 Subject: [PATCH] rpm extraction --- configs/shells/bash/macros.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/shells/bash/macros.sh b/configs/shells/bash/macros.sh index bbcdbc8..b3c4114 100644 --- a/configs/shells/bash/macros.sh +++ b/configs/shells/bash/macros.sh @@ -113,6 +113,7 @@ extract() { *.7z) 7z x $1 ;; *.tar.zst) tar --use-compress-program=unzstd -xvf $1 ;; *.zst) zstd -d $1 ;; + *.rpm) rpm2cpio $1 | cpio -idmv ;; *) echo "don't know how to extract '$1'..." ;; esac else