When trying to use the Linux operating system, many friends may think that installing the software package is very troublesome. The main reason is (taking the RedHat system Linux as an example ): 1. the RPM installation method cannot effectively solve complicated package dependencies. 2. The YUM installation method can effectively solve the package dependency, but needs to connect to the Internet (this is of course a beginner's understanding ). To sum up, we should obviously discard the RPM installation method. If we can also use YUM to install the software package without network connection, that's the case.
When trying to use the Linux operating system, many friends may think that installing the software package is very troublesome. The main reason is (taking the RedHat system Linux as an example ):
1. the RPM installation method cannot effectively solve complicated package dependencies.
2. The YUM installation method can effectively solve the package dependency, but needs to connect to the Internet (this is of course a beginner's understanding ).
To sum up, we should obviously discard the RPM installation method. If we can use YUM to install software packages without network connection, it will become very simple.
The following describes the simplest method to avoid software installation:
1. Run the mkdir command to create a cdrom directory under the/media directory.
2. Place the installation disc into the optical drive, mount it to a directory, and copy all the content of the disc to the/media/cdrom directory.
3. Use this command to install the software package: yum -- disablerepo = \ * -- enablerepo = c6-media install xxxx-xxxx
4. Use this command to install the software package: yum -- disablerepo = \ * -- enablerepo = c6-media groupinstall xxxx-xxxx
5. If you think it is too troublesome to enter this command every time, you can replace it with an alias. It will be much easier to use it later.
Note: xxxx-xxxx indicates the software package or package name. -- disablerepo = \ * indicates that all other repo sources are prohibited, -- enablerepo = c6-media indicates to enable the disc repo source (it thinks/media/cdrom is the directory mounted to the disc), which is actually equivalent to creating a repository of YUM sources locally, each time the software is installed, it will go directly to this warehouse to find the software, automatically analyze the dependency, and help us smoothly install the software.