In a virtual machine, the Linux system needs to be configured to install a local yum source to connect to the external network. How to configure it? You can use local iso as the source. The following small series will introduce you how to mount the iso yum source in the virtual machine. Let's learn it together.
First, as the system will be mounted on the iso source.
The code is as follows:
mount -o loop /dev/cdrom /mnt/iso/
or
mount -o loop /xxx/xxx. Iso /mnt/iso/
where /mnt/iso is a folder created locally beforehand.
Then copy the file iso.repo into the folder /etc/yum.repos.d
If there are other *.repo files in the /etc/yum.repos.d folder, Please delete it after backup.
The contents of iso.repo are as follows:
The code is as follows:
[iso]
baseurl=file:///mnt/iso
gpgkey=file:///mnt/iso/RPM-GPG-KEY-redhat-beta
failovermethod=priority
enabled=1
gpgcheck=0
Finally, execute yum update to update yum source
After the update is complete, you can use yum to install packages.
Installing packages with yum can automatically find the dependencies between packages and install them automatically in the order of dependencies, which is very convenient.
The above is the introduction of how to mount the iso yum source in Linux in the virtual machine. First, mount the iso as the source to the system, and then update the yum source, you can follow the packages, you learn Yet?
In Linux, many people dont understand the meaning of the variable parameter $ in th
In Linux system operation, GDB is a program debugging tool, and has a variety of functions, the foll
Linux file I/O mainly refers to file input and output. Many beginners dont know much about I/O of fi
Using Ruby On Rails under Linux can make the maintenance and development of web applications more co
How to change the position of the close/maximize/minimize button in the Ubuntu program window
How to brush the original Debian system in the set-top box
How to use the command line to access Gmail
Linux which command to find files using
How to use sed command to replace string under Linux
Linux beginners need to learn the summary of commands
What should I do if the Ubuntu login screen resolution is too high?
Linux method for handling Tomcat exceptions
How to modify the default timeout time of sudo in Ubuntu system?
How to use the du and df commands to clear large files under Linux?
How to set the win7 taskbar to transparent
Cleverly deal with the five major failures of Windows 7
Analysts say Microsoft faces four major challenges in 2010.
Win10 system uses the diagnostic mode to appear black screen failure reasons and solutions
How to cancel the "Bluetooth Peripherals" option in the win7 Ultimate computer menu
How to make the edge browser faster? Edge browser speed tutorial
What should I do if the grub system starts up with grub?
Suspected Windows8 latest resource manager interface exposure