Linux Yum installation could not find the source

Source: Internet
Author: User

1 First, ask the question:

Server installed Kylin system after the installation of GIS map (in fact, is to deploy a set of map services), because it is the intranet, so all the required packages are placed in an ISO file, you need to use the Mount command to load it, and then configure the *.repo file (source file configuration), so that the system automatically to find relevant dependencies, Then install PostGIS. The result is that some dependencies cannot be found during installation. Think impossible Ah, on the virtual machine can be, to this is missing the package.

2 Solution:

From a new repo file, the system image is also loaded into the data source. To create a repo file, you must understand the repo file. Copy a little from one of the great gods. Feeling can explain the problem.

[Fedora]       #方括号里面的是软件源的名称, will be acquired and identified by Yum
Name=fedora $releasever-$basearch #这里也定义了软件 The name of the   warehouse, usually for the convenience of reading the configuration file, generally no effect
enabled=1 #这个选项表示这个repo中定义的源是启用的, 0 is disabled gpgcheck=1 #这个选项表示这个repo中下载的rpm将进行gpg的校验, Determined the source of the RPM package is valid and secure gpgkey=file://etc/pki/rpm-gpg/rpm-gpg-key-fedora-$basearch #定义用于校验的gpg密钥, is the location of the digital signature's public key file! 

Note: If Gpgcheck is 0, Gpgkey is not valid. For the intranet, configure 0 on the line, 1 words may have other considerations. There are also source names and warehouse names that cannot be duplicated, cannot be duplicated, and cannot be duplicated. This is equivalent to the ability to configure an unlimited number of repo, very happy ah.

Linux Yum installation could not find the source

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.