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;
$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;
}