Skip to content

Commit cb2d430

Browse files
committed
uClean packages on Alpine distros
1 parent e72a6c1 commit cb2d430

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

scripts/clean-packages.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/bin/bash
22
source "scripts/common/filesystem.sh"
3-
source "${REPO_SCRIPTS_DIR}/common/common.sh"
4-
source "${REPO_SCRIPTS_DIR}/common/package-management.sh"
5-
source "${REPO_SCRIPTS_DIR}/common/system-info.sh"
3+
source "${REPO_SCRIPTS_COMMON_DIR}/common.sh"
4+
source "${REPO_SCRIPTS_COMMON_DIR}/package-management.sh"
5+
source "${REPO_SCRIPTS_COMMON_DIR}/system-info.sh"
66

7-
if [ "${DISTRO_FAMILY}" = 'Arch' ]; then
7+
if [ "${DISTRO_FAMILY}" = 'Alpine' ]; then
8+
call_package_manager cache clean
9+
elif [ "${DISTRO_FAMILY}" = 'Arch' ]; then
810
if does_bin_exist 'paccache'; then
911
run_as_su paccache -ruk0 # Remove all uninstall packages from the cache
1012
run_as_su paccache -rk1 # Remove all cached versions of all packages, except the latest one

0 commit comments

Comments
 (0)