要在yum安裝gcc時指定版本,您需要使用yum的固定版本功能。以下是具體步驟:
yum list gcc
yum install gcc-7
yum install gcc-7.3.1
通過這些步驟,您可以在yum安裝gcc時指定特定版本。請注意,您需要確保所選版本在您的yum存儲庫中可用。