# Gentoo compiler update
Reading time: 1 minute
Description: Updating GCC on gentoo linux
- Update the gcc package like any other
- List the installed version
1gcc-config --list-profiles - Use the new one
1gcc-config <number_from_list> - Update profile
1source /etc/profile - Update libtool
1emerge --ask --oneshot --usepkg=n sys-devel/libtool - Remove the old version
1emerge --ask --depclean sys-devel/gcc:12 - (optional) Rebuild the system and world set
1 2emerge --ask --emptytree --usepkg=n @system emerge --ask --emptytree --usepkg=n @world