I am trying to set-up an environment to compile an out-of-date project using some old gcc version, e.g., 4.8.2
inside a Docker container virtualizing Alpine Linux.
When I dive into the container i.e., docker run -it alpine:latest
I try to apk
list packages but of course I only see the latest versions of gcc/g++
.
I thought I could at first install some dependencies, including the latest versions of the compilers and then remove them but when I run apk build-base
I cannot apk del gcc g++
due to
World updated, but the following packages are not removed due to: gcc: g++ build-base
So I guess I have to install manually the gcc/g++
I want. Does anyone have any suggestion on how to do that? I do not wish to change to Ubuntu for instance and solve it there [1], instead I would like to give Alpine Linux a go thus I am sticking with it.