File indexing completed on 2025-01-19 03:59:48

0001 #!/bin/bash
0002 
0003 # Script to cleanup installation of KF5 framework from the host system.
0004 # This script must be run as sudo
0005 #
0006 # SPDX-FileCopyrightText: 2015-2024 by Gilles Caulier  <caulier dot gilles at gmail dot com>
0007 #
0008 # SPDX-License-Identifier: BSD-3-Clause
0009 #
0010 
0011 # Halt and catch errors
0012 set -eE
0013 trap 'PREVIOUS_COMMAND=$THIS_COMMAND; THIS_COMMAND=$BASH_COMMAND' DEBUG
0014 trap 'echo "FAILED COMMAND: $PREVIOUS_COMMAND"' ERR
0015 
0016 #################################################################################################
0017 # Pre-processing checks
0018 
0019 . ../common.sh
0020 ChecksRunAsRoot
0021 
0022 rm -vfr /usr/lib64/libKF5*
0023 rm -vfr /usr/share/ECM
0024 rm -vfr /usr/include/KF5
0025 rm -vfr /usr/lib64/cmake/KF5*
0026 rm -vfr /usr/include/astro
0027 rm -vfr /usr/include/marble
0028 rm -vfr /usr/share/marble
0029 rm -vfr /usr/share/k*5
0030 rm -vfr /usr/plugins/kf5
0031 rm -vfr /usr/plugins/imageformats/kimg*
0032 rm -vfr /usr/plugins/kauth
0033 rm -vfr /usr/plugins/plasma
0034 rm -vfr /usr/plugins/styles/breeze*
0035 rm -vfr /usr/plugins/iconengines/KIcon*
0036 rm -vfr /usr/plugins/designer/k*
0037 rm -vfr /usr/plugins/org.kde*
0038 rm -vfr /usr/plugins/marble*
0039 rm -vfr /usr/plugins/kcm*
0040 rm -vfr /usr/lib64/marble
0041 rm -vfr /usr/lib64/libastro*
0042 rm -vfr /usr/lib64/libmarble*
0043 rm -vfr /usr/lib64/cmake/Marble
0044 rm -vfr /usr/lib64/cmake/Astro