From: Vladimir Sokolovsky Date: Mon, 3 Nov 2008 08:42:50 +0000 (+0200) Subject: Make sure all ofed RPMs coming from distroes are uninstalled. X-Git-Tag: vofed-1.4-rc4~3 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=348da45288f83fa68475647f1c801c57eb614de6;p=~vlad%2Fofed_scripts.git Make sure all ofed RPMs coming from distroes are uninstalled. There are some ofed RPMs coming from Linux distributions with different names, including "ofed" in it. All these RPMs will be removed by OFED's install script. Signed-off-by: Vladimir Sokolovsky --- diff --git a/install.pl b/install.pl index 6550ecc..b076c0d 100755 --- a/install.pl +++ b/install.pl @@ -3868,8 +3868,9 @@ sub uninstall } } + my @other_ofed_rpms = `rpm -qa 2> /dev/null | grep ofed`; my $cmd = "rpm -e --allmatches"; - for my $package (@all_packages, @hidden_packages, @prev_ofed_packages) { + for my $package (@all_packages, @hidden_packages, @prev_ofed_packages, @other_ofed_rpms) { next if ($package eq "mpi-selector"); if (is_installed($package)) { $cmd .= " $package";