1. commands to be executed
Mkdir/dvd: Create a directory because the mount point must be a directory
MOUNT/DEV/SR0/DVD: Mounting
Df-h: Check to see if it is mounted on
Vim/etc/yum.repos.d/rhel-dvd.repo: Write a configuration file for the Yum source
Yum Repolist: Take a look at the local warehouse information.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/81/F3/wKiom1dGNZHCq8pPAACFi6UJl2U644.png "title=" Qq20160526073016.png "alt=" Wkiom1dgnzhcq8ppaacfi6ujl2u644.png "/>
Write config file:
[Rhel-dvd] Name=dvd Baseurl=file:///dvd
Gpgcheck = 0: Do not check for signatures Enable = 1: Enables the current warehouse |
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/81/F1/wKioL1dGN4iQqaWjAAAmVtNkZf4335.png "title=" Qq20160526073425.png "alt=" Wkiol1dgn4iqqawjaaamvtnkzf4335.png "/>
Note: (1). /dvd must have a mirror, you can take a U disk copy an image file, or virtual machine---set->cd/dvd-> browse---copying, pasting, (from the physical machine to get an iOS image file): Stick over the store in/tmp, using the Find command found can!
Under Move to/dvd.
(2). Each time you re-enter the terminal, you must re-mount it to install the package.
2. Yum Install package: can resolve dependencies.
Yum Install GCC installation GCC development tools
The Yum install gcc-y/yum install-y gcc installation process is not prompted for direct installation.
Yum Remove gcc removal gcc
Hint message:-D only download not installed
The best way to install the software is to use the Yum install *vnc* to match the installation better, and all the relevant is installed.
Ubuntu is an open source Linux operating system, using the APT command to install the tool, do not configure the local warehouse, when installing the software but must be networked, directly from the official website download!
Red Hat7 version Local repository yum source configuration