Easily solve the problem of installing software packages in Linux

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.