yum installation is very convenient, but if RedHat is not registered or the host is disconnected, it cannot be installed online. It can only be used as a local yum source by means of ISO or CD-ROM. This article only summarizes the usage of RedHat6 and CentOS6 systems. In a virtual machine environment or other version system, the path and name in some commands below may need to be modified, such as the CD-ROM path and ISO image name.
First, make a CD ISO
1, insert a CD
Ensure that the CD-ROM is available.
2, execute copy command
mkdir /repo/iso
cp /dev/cdrom /repo/iso/rhel-6.0-x86_64-dvd.iso
Assuming the generated ISO name is rhel-6.0-x86_64-dvd.iso, please modify it if the version is different, the same below.
Second, mount CD ISO
1, such as using optical drive
mount /dev/cdrom /media/
2, if using ISO
# mount -t iso9660 -o loop /repo/iso/rhel-6.0-x86_64-dvd.iso /media/
Three, configure repo resource pool
1, if Is RedHat
vi /etc/yum.repos.d/install_dvd.repo
Contents are as follows:
2, if it is CentOS
first need to back up the original resource pool file:
mv /etc/yum. Repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
Modify the resource pool file again:
vi /etc/yum.repos The .d/CentOS-Base.repo
content is as follows:
Four, execute yum Install
Desktop environment:
# system-config-packages
Command line:
# yum install mysql mysql-server mysql-devel< Br>
V. Uninstall ISO
umount /media/
If the above is not mount to /media, the corresponding modification can be.
Why should there be process priority? This does not seem to require too much explanation. After all,
HAProxy provides high availability, load balancing, and proxy for TCP and HTTP applications, support
Worker. Client: The originator of the request, which can be C, PHP, Perl, MySQL UDF, etc. Job: The
In recent years, the open source Linux system can be said to be in the limelight, whether it is pers
How to make the program run in the background under Linux
What is the relationship between Linux and GNU?
Website Management SSH Common Commands
How to run China Merchants Bank Professional Edition under Linux
Centos configuration nfs and hangs on windows server 2008
Linux VIM Editor Find and Replace Tutorial
Linux Service Management Shorthand
Linux file search technology Daquan
Linux installation method Telnet setting method
What should I do if the Win8.1 computer sound icon is missing?
Win8 open class: How to choose several versions of Win8
How to add device manager to Win7 computer right-click menu
Win10 can not use the built-in program how the win10 built-in program can not be used solution
XP Registry Optimization 10 Tips
Win8 App Store Tips for 0x80240437
Win8 install msi program prompt 2502/2503 error caused the installation failure solution
How to solve the problem of mutual access between XP system and Win7 system