Hello,
I installed Linux Lite 1h ago and in the package manager I can see gcc 9 and gcc 10:
https://pasteboard.co/798ad879-31a9-442f...0ac1457acf
I really only need the latest and greatest not sure how or why I have two gcc.
I did try to search for gcc 10 in my system but I can only find gcc 9.
How can I just have gcc 10 and not mess anything up?
"Image not found" That img you uploaded, is not there. Use imgur
https://imgur.com/ or imgBB
https://imgbb.com/ https://www.linuxliteos.com/forums/intro...uidelines/
You can keep both, and make one the default, just type in a terminal
Code:
sudo update-alternatives --config gcc
You'll see something like
Code:
There are 3 choices for the alternative gcc (providing /usr/bin/gcc).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/gcc-8 90 auto mode
1 /usr/bin/gcc-9 70 manual mode
2 /usr/bin/gcc-10 80 manual mode
Press <enter> to keep the current choice[*], or type selection number:
Select the one you want to use and that's it.
Hope this helps!

Hello again,
It seems that now I really do have gcc 9 and gcc 10:
Code:
ls -la /usr/bin/ | grep gcc
-rwxr-xr-x 1 root root 428 May 7 2006 c89-gcc
-rwxr-xr-x 1 root root 454 Apr 11 2011 c99-gcc
lrwxrwxrwx 1 root root 5 Feb 20 10:38 gcc -> gcc-9
lrwxrwxrwx 1 root root 23 Aug 8 2020 gcc-10 -> x86_64-linux-gnu-gcc-10
lrwxrwxrwx 1 root root 22 Feb 20 10:38 gcc-9 -> x86_64-linux-gnu-gcc-9
lrwxrwxrwx 1 root root 8 Feb 20 10:38 gcc-ar -> gcc-ar-9
lrwxrwxrwx 1 root root 26 Aug 8 2020 gcc-ar-10 -> x86_64-linux-gnu-gcc-ar-10
lrwxrwxrwx 1 root root 25 Feb 20 10:38 gcc-ar-9 -> x86_64-linux-gnu-gcc-ar-9
lrwxrwxrwx 1 root root 8 Feb 20 10:38 gcc-nm -> gcc-nm-9
lrwxrwxrwx 1 root root 26 Aug 8 2020 gcc-nm-10 -> x86_64-linux-gnu-gcc-nm-10
lrwxrwxrwx 1 root root 25 Feb 20 10:38 gcc-nm-9 -> x86_64-linux-gnu-gcc-nm-9
lrwxrwxrwx 1 root root 12 Feb 20 10:38 gcc-ranlib -> gcc-ranlib-9
lrwxrwxrwx 1 root root 30 Aug 8 2020 gcc-ranlib-10 -> x86_64-linux-gnu-gcc-ranlib-10
lrwxrwxrwx 1 root root 29 Feb 20 10:38 gcc-ranlib-9 -> x86_64-linux-gnu-gcc-ranlib-9
lrwxrwxrwx 1 root root 5 Feb 20 10:38 x86_64-linux-gnu-gcc -> gcc-9
-rwxr-xr-x 1 root root 1227880 Aug 8 2020 x86_64-linux-gnu-gcc-10
-rwxr-xr-x 1 root root 1154192 Aug 8 2020 x86_64-linux-gnu-gcc-9
lrwxrwxrwx 1 root root 8 Feb 20 10:38 x86_64-linux-gnu-gcc-ar -> gcc-ar-9
-rwxr-xr-x 1 root root 35464 Aug 8 2020 x86_64-linux-gnu-gcc-ar-10
-rwxr-xr-x 1 root root 35464 Aug 8 2020 x86_64-linux-gnu-gcc-ar-9
lrwxrwxrwx 1 root root 8 Feb 20 10:38 x86_64-linux-gnu-gcc-nm -> gcc-nm-9
-rwxr-xr-x 1 root root 35464 Aug 8 2020 x86_64-linux-gnu-gcc-nm-10
-rwxr-xr-x 1 root root 35464 Aug 8 2020 x86_64-linux-gnu-gcc-nm-9
lrwxrwxrwx 1 root root 12 Feb 20 10:38 x86_64-linux-gnu-gcc-ranlib -> gcc-ranlib-9
-rwxr-xr-x 1 root root 35464 Aug 8 2020 x86_64-linux-gnu-gcc-ranlib-10
-rwxr-xr-x 1 root root 35464 Aug 8 2020 x86_64-linux-gnu-gcc-ranlib-9
so gcc is set to gcc9 how to I get rid of gcc9 or at least just switch gcc to gcc10 (and hopefully not cause conflicts on anything)
They may both be there for a reason. You can test your option in a VM first.
Sent from my mobile phone using Tapatalk
The reason is that I installed gcc10, but I was hoping that gcc10 would then be set as default

I did! This is what I get:
Code:
~ sudo update-alternatives --config gcc
update-alternatives: error: no alternatives for gcc
Did you read my reply???
The accepted answer talks about update-alternatives which I've already shown says there are no alternatives.
But if this is as simple as just changing the symlink and there will be no issues sure, I'll change.