Install software locally from yum

Source: Internet
Author: User
I encountered several problems when I learned how to install software from a local machine in Linux. the installation of the tar package involves three steps :. /configuremake (maketest) makeinstall. if the rpm Package is used for installation, the rpm-ivh + package name is used. but the rpm package...
I encountered several problems when I learned how to install software from a local machine in Linux. the installation of the tar package involves three steps :. /configure make (make test) make install. if the rpm Package is used for installation, the rpm-ivh + package name is used. however, the rpm Package is dependent on the software package. for example, to install a software package, you may need to install multiple associated rpm packages. Manual installation is troublesome. if yum is used for installation, it will save a lot of trouble. it will automatically determine the dependency between software packages and facilitate installation. yum installation must be performed on the network. if you cannot access the Internet, you can install yum on a local disk. mount the CD at www.2cto.com at http://www.2cto.com/ OS /201211/166195.htmlto the configuration directory/etc/yum of yum. repos. d
In order to prevent future we also need to install from the Internet, new yumbak file, move the configuration file to the inside to enter the backup in the current directory to create a new configuration file Centos-iso.repo, the name can be random, but the suffix must be repo. edit the configuration file as follows:
[Local] name = isobaseurl = file: // mnt/cdrom ---- disk mount point gpgcheck = 1 --- it can also be 0 6. clear yum cache: yum clean all
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.