From f22c08d1da688da1be4a8662f91e9b920334d88d Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Thu, 7 Nov 2013 14:09:56 +0200 Subject: [PATCH] install.pl: Force uninstall of the in-box RDMA packages Signed-off-by: Vladimir Sokolovsky --- install.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.pl b/install.pl index c067e2d..b824413 100755 --- a/install.pl +++ b/install.pl @@ -4039,8 +4039,8 @@ sub force_uninstall my $res = 0; my $sig = 0; my $cnt = 0; - my @other_ofed_rpms = `rpm -qa 2> /dev/null | grep -wE "rdma|ofed|openib|ofa_kernel"`; - my $cmd = "rpm -e --allmatches"; + my @other_ofed_rpms = `rpm -qa 2> /dev/null | grep -E "rdma|ofed|openib|ofa_kernel|kernel-ib"`; + my $cmd = "rpm -e --allmatches --nodeps"; for my $package (@all_packages, @hidden_packages, @prev_ofed_packages, @other_ofed_rpms, @distro_ofed_packages) { chomp $package; @@ -4084,6 +4084,7 @@ sub force_uninstall $sig = $? & 127; if ($sig or $res) { print RED "Failed to uninstall the previous installation", RESET "\n"; + print RED "Remove manually dependent packages and rerun the installation", RESET "\n"; print RED "See $ofedlogs/ofed_uninstall.log", RESET "\n"; exit 1; } -- 2.41.0