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