Skip to content
Browse files
Adding --replacepkgs parameter to ensure proper epel install
- rpm -Uvh exits with 1 if it is already installed
- replacepkgs ensures that the package will be properly updated
  or replaced if already installed
  • Loading branch information
ygy committed Aug 17, 2015
1 parent 5ef0b61 commit c38f8ad4e51ce8792343a67432eca48bcb290192
Showing 1 changed file with 1 addition and 1 deletion.
@@ -100,7 +100,7 @@ public void install() {

List<String> commands = ImmutableList.<String>builder()
// EPEL repository for erlang install required on some Centos distributions
.add(chainGroup("which yum", sudo("yum -y update ca-certificates"), sudo("rpm -Uvh " +
.add(chainGroup("which yum", sudo("yum -y update ca-certificates"), sudo("rpm -Uvh --replacepkgs " +
format("", osMajorVersion, osArchitecture, epelVersion))))
.add(ifExecutableElse0("zypper", chainGroup(
ok(sudo("zypper --non-interactive addrepo erlang_sles_11")),

0 comments on commit c38f8ad

Please sign in to comment.