Original: http://blog.csdn.net/chagaostu/article/details/45195817
Install software to the intranet server
If you install xxx directly with Yum, you will be notified that you cannot find the source. Company shielding outside the network is annoying ah.
Discover the source on your company's Windows Server,centos-6.5-x86_64-bin-dvd1.iso
The first step is to mount the remote server, using Samba
Mount-t cifs-o username= "user", Password=xxx//xxx. Xx. Xx.xxx/it-resource/linux/os/centos/mnt/smb/cdrom
Note that the [\] of Windows systems is changed to [/]
Go to/mnt/smb/cdrom under View, the various versions of the ISO files are available.
The second step to mount the ISO, do not ask why the two-time mount, the master said only this, I can only believe.
Mount-o Loop/mnt/smb/cdrom/centos-6.5-x86_64-bin-dvd1.iso/mnt/smb/cdrom2
The third step is to set the local Yum source
cd/etc/yum.repos.d/
You'll see 4 repo files
Centos-media.repo is a configuration file for the Yum local source, which modifies the
Find Baseurl=
Add file:///mnt/smb/cdrom2/below (that is, the mount point just now)
Change Enabled=0 to 1
Save
Fourth step, shielding the outside of the Yum source (for our kind of machine not connected to the outside network seems meaningless)
Change the other *.repo to *.repo.bak.
OK, you can install the software with Yum
Linux mounts the ISO on the remote Windows Server, installs the software to the intranet server