#!/usr/bin/sh #---------------------------------------------------------------------------- # /var/install/deinstall/libopenblas_openmp0 - deinstall script # # Creation : 2025-01-17 holbru # Last update: $Id$ # # Copyright (c) 2025-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- # set package name package_name=libopenblas_openmp0 # check for update is given if [ "${1}" = "--update" ] then update=true fi for lib in libblas.so.3 libcblas.so.3 liblapack.so.3 liblapacke.so.3 do /usr/sbin/update-alternatives --remove ${lib} /usr/lib/libopenblas.so.0 done /usr/sbin/update-alternatives --remove libopenblas.so.0 /usr/lib/libopenblas.so.0 /usr/sbin/update-alternatives --remove openblas-default_i386 /usr/lib/openblas-openmp # --------------------------------------------------------------------------- # stop remove for update only # --------------------------------------------------------------------------- if ${update:-false} then exit 0 fi installed=$(eisman check libopenblas_openmp-dev) if [ "${installed}" = "installed" ] then eisman uninstall --auto --force libopenblas_openmp-dev fi exit 0 # --------------------------------------------------------------------------- # end # ---------------------------------------------------------------------------