Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7a3016

Browse files
committed
yum erase with --setopt instead of modifying yum.conf
1 parent b4cb723 commit a7a3016

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Dockerfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,8 @@ RUN GCCVER=6.1.0 && \
2121
../gcc-$GCCVER/configure --disable-multilib --enable-languages=c,c++,fortran && \
2222
make -j `nproc` && \
2323
make install && \
24-
echo 'clean_requirements_on_remove=1' >> /etc/yum.conf && \
25-
yum erase -y gcc-c++ && \
24+
yum erase -y gcc-c++ --setopt=clean_requirements_on_remove=1 && \
2625
yum clean all && \
2726
rm -rf /tmp/c6g6
2827

2928
ENV LD_LIBRARY_PATH /usr/local/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
30-
31-
# uncomment the following to build julia as a test whether things work
32-
#RUN yum install -y which patch xz m4 cmake openssl-devel centos-release-scl && \
33-
# yum install -y git19 python27 && \
34-
# source /opt/rh/git19/enable && \
35-
# source /opt/rh/python27/enable && \
36-
# git clone https://github.com/JuliaLang/julia /tmp/julia && \
37-
# cd /tmp/julia && \
38-
# make -j `nproc` testall

0 commit comments

Comments
 (0)