From d3093b95531241283889129b6a5e04594b1ead3d Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 27 Jun 2018 20:55:44 +0200 Subject: XFCE: keep the ISO size below 700 MB while adding required packages --- make_slackware_live.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 6497cd3..c03de4f 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -460,6 +460,8 @@ function install_pkgs() { # Remove residual bloat: rm -rf "${2}"/usr/doc/*/html rm -f "${2}"/usr/doc/*/*.{html,css,xml,pdf,db,gz,bz2,xz,txt,TXT} + # This will remove more bloat but won't touch the license texts: + find "${2}"/usr/doc/ -type f -size +50k |xargs rm -f # Remove info pages: rm -rf "$2"/usr/info fi @@ -482,7 +484,9 @@ function install_pkgs() { rm -rf "$2"/usr/lib${DIRSUFFIX}/lib{LLVM,clang,lldb}*.a # And these are not needed for a simple XFCE ISO: rm -rf "$2"/usr/lib${DIRSUFFIX}/clang/*/lib/linux/*.a{,.syms} - rm -f "$2"/usr/bin/{c-index-test,clang-check,clang-import-test,clang-include-fixer,clang-offload-bundler,clang-order-fields,clang-query,clang-rename,clang-tidy} + rm -f "$2"/usr/bin/{c-index-test,clang-check,clang-import-test,clang-include-fixer,clang-offload-bundler,clang-order-fields,clang-refactor,clang-query,clang-rename,clang-reorder-fields,clang-tidy,clangd,lldb-server,lldb-test} + rm -rf "$2"/usr/lib${DIRSUFFIX}/guile/*/ccache/* + rm -rf "$2"/usr/share/icons/HighContrast # Nor these datacenter NIC firmwares and drivers: rm -rf "$2"/lib/firmware/{bnx*,cxgb4,libertas,liquidio,mellanox,netronome,qed} rm -rf "$2"/lib/modules/*/kernel/drivers/infiniband -- cgit v1.2.3