In one case, if linux is in the intranet and is not connected to the Internet, yuminstall/* Service */cannot be used. First, we need to find the yum source to be installed in the optical drive, the format is. rpm. Find the. rpm file to be installed and copy its path. Rpm-ivh/*. rpm full path */We can directly use this method to install the required rmp without attaching the optical drive. you only need to find the path in the optical drive. & Nb
One scenario is that linux is in the intranet and cannot be used without network connection.
Yum install/* Service */
First, find the yum source to be installed in the optical drive. the format is. rpm.
Find the. rpm file to be installed and copy its path.
Rpm-ivh/*. rpm full path */
We can directly use this method to install the required rmp without mounting the optical drive, as long as you find the path in the optical drive. If there is only one optical drive, the optical drive directory is generally
/dev/cdrom
Cd to this directory, and then ll is to view the files under this directory.