Some distributions come with package sets for different versions of GCC, which you can easily install in parallel; others do not. Specifically, in Devuan ASCII / Debian Stretch, there only seem to be GCC 6 packages.

What's the right way to install additional versions of GCC in parallel to v6? Is there a special repository like the Ubuntu-targeted PPAs (e.g. ppa:jonathonf/gcc-7.1)? I'd rather avoid adding apt sources which need updating for newer versions of Debian (e.g. sid).

  • 2
    Having used Debian and switched to Devuan, I still have several versions of gcc installed in parallel (and regularly have to delete older ones). So my guess would be "add apt sources, pin apt to ASCII (google "apt-pinning") to avoid updating, install other gcc versions as required". – dirkt Jul 6 '18 at 8:02
  • I am in Debian 9 without systemd...is the switch problematic? Never tried it. – Rui F Ribeiro Jul 6 '18 at 12:20
  • @RuiFRibeiro: No, I don't think you are. IIANM, Debian 9 cannot run without systemd. The switch is very easy if you come from Debian, except that you (probably) won't be using the Gnome desktop environment. If you're used to XFCE, LXQt, Cinnamon or Mate then you're good, and probably KDE also. Almost all packages in Devuan are simply the Debian packages of the corresponding release, – einpoklum Jul 6 '18 at 13:39
  • @RuiFRibeiro: Having said that - switching without reinstalling your distribution may not be simple/possible, See this question about my problems doing that. – einpoklum Jul 6 '18 at 13:42
  • using Debian 9 with Sys V in server vms...the only thing I cannot get rid of is systemd-udev, and I have not yet invested time on it. – Rui F Ribeiro Jul 6 '18 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.