Linux local iso yum source configuration, yum install gcc and other built-in tool systems centos6.3 iso, create dir, mountLinux code www.2cto.com [root @ localhost/] # mkdir/mnt/cdrom [root @ localhost/] # mount/dev/cdrom/mnt/cdrom switch to the directory:/etc/yum. repos. d. Add a suffix to the file backup in the directory. bak new file CentOS-Base.repo, the directory file is as follows: Liunx code [root @ localhost cdrom] # cd/etc/yum. repos. d/[root @ localhost yum. repos. d] # ll total 20-rw-r --. 1 root 84 Jan 29 CentOS-Base.repo-rw-r --. 1 root 1926 Jan 29 CentOS-Base.repo.bak-rw-r --. 1 root 637 Jan 29 CentOS-Debuginfo.repo.bak-rw-r --. 1 root 626 Jan 29 CentOS-Media.repo.bak-rw-r --. 1 root 2593 Jan 29 CentOS-Vault.repo.bak www.2cto.com new CentOS-Base.repo file content configuration is as follows: Linux code [root @ localhost yum. repos. d] # less CentOS-Base.repo [cdrom] name = CentOS-$ releasever-cd baseurl = file: /// mnt/cdrom gpgcheck = 0 enabled = 1 exit and save the Linux code [root @ localhost yum. repos. d] # yum clean all install gccLinux code [root @ localhost yum. repos. d] # install other gcc tools in yum install