Skip to content

Commit

Permalink
yum erase with --setopt instead of modifying yum.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tkelman committed May 4, 2016
1 parent b4cb723 commit a7a3016
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,8 @@ RUN GCCVER=6.1.0 && \
../gcc-$GCCVER/configure --disable-multilib --enable-languages=c,c++,fortran && \
make -j `nproc` && \
make install && \
echo 'clean_requirements_on_remove=1' >> /etc/yum.conf && \
yum erase -y gcc-c++ && \
yum erase -y gcc-c++ --setopt=clean_requirements_on_remove=1 && \
yum clean all && \
rm -rf /tmp/c6g6

ENV LD_LIBRARY_PATH /usr/local/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

# uncomment the following to build julia as a test whether things work
#RUN yum install -y which patch xz m4 cmake openssl-devel centos-release-scl && \
# yum install -y git19 python27 && \
# source /opt/rh/git19/enable && \
# source /opt/rh/python27/enable && \
# git clone https://github.com/JuliaLang/julia /tmp/julia && \
# cd /tmp/julia && \
# make -j `nproc` testall

0 comments on commit a7a3016

Please sign in to comment.