Home > OS >  Small white help within the local area network (LAN) how to solve the problem of Linux install softw
Small white help within the local area network (LAN) how to solve the problem of Linux install softw

Time:09-16

Private server, set up git installed centos system in virtual machine, use the source code to install git need to solve the problem of dependence, but the company only network, can not pull from the cloud,,, just contact is still yet to find a solution,,,

CodePudding user response:

Can use yum CD source, the harm is not may install the latest version of the dependent package and library files

Yum CD source
Mount the CD to the directory
Mount/dev/sr0/MNT/cdrom
Permanent mount
Echo "/dev/sr0/media/cdrom either iso9660 defaults 0 0" & gt;> The/etc/fstab
Through rename changed its name to the/etc/yum repos. Except CentOS - Media. Under d/repo yum source failure (mainly Base)
Configuration CentOS - Media. '
Baseurl=file:///media/cdrom
Add mount address #, and comment out the unused address
On the lines of # comments must be strict in the most beginning
Set the enable=1
The enable=0, repo failure; The enable=1 or default don't write, the repo to take effect

CodePudding user response:

reference 1st floor yolyry response:
can use yum CD source, harm is not may install the latest version of the dependent package and library files

Yum CD source
Mount the CD to the directory
Mount/dev/sr0/MNT/cdrom
Permanent mount
Echo "/dev/sr0/media/cdrom either iso9660 defaults 0 0" & gt;> The/etc/fstab
Through rename changed its name to the/etc/yum repos. Except CentOS - Media. Under d/repo yum source failure (mainly Base)
Configuration CentOS - Media. '
Baseurl=file:///media/cdrom
Add mount address #, and comment out the unused address
On the lines of # comments must be strict in the most beginning
Set the enable=1
The enable=0, repo failure; The enable=1 or default don't write, effective repo

Well, just to see, thank you, I have a try tomorrow
  • Related