Yum repository Creation

Source: Internet
Author: User
The establishment of the yum repository-general Linux technology-Linux technology and application information. The following is a detailed description. Hello everyone, I am a beginner in Linux. I recently studied how to establish a Yum repository.
I have released my system image to http and successfully created a yum repository. The yum repository is used normally.
When installing an rpm package today, I want to solve the compatibility of the rpm package. I have created a yum repository by myself. The specific steps are as follows:
1. yum install createrepo. noarch install creatrepo.

2mv/root/Desktop/vnc-4_1_3-x86_linux.rpm/mnt/test move the downloaded package to your own file

3 cd/mnt/test

4. createrepo.
1/1-vnc-4_1_3-x86_linux.rpm
Saving Primary metadata
The Saving file lists metadata displays
Saving other metadata


5. ls/mnt/test/repodate
Filelists.xml.gz other.xml.gz primary.xml.gz repomd. xml shows

6. vim/etc/yum. repos. d/yum. repo
[Server]
Name = local Server
Baseurl = http: /192.168.1.119/5.4/Server
Gpgcheck = 0

[Cluster]
Name = local Cluster
Baseurl = http: // 192.168.1.119/5.4/Cluster
Gpgcheck = 0

[ClusterStorage]
Name = local ClusterStorage
Baseurl = http: // 192.168.1.119/5.4/ClusterStorage
Gpgcheck = 0

[VT]
Name = local VT
Baseurl = http: // 192.168.1.119/5.4/VT
Gpgcheck = 0

Add
[Test]
Baseurl = file: // mnt/test
Gpgcheck = 0


When using yum clean all
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, filter-data,
: Keys, kmod, list-data, protect-packages, protectbase, rhnplugin,
: Security, tmprepo, verify, versionlock
Repository 'test' is missing name in configuration, using id
Repository 'test' is missing name in configuration, using id
Repository test is listed more than once in the configuration
Cleaning up Everything
Cleaning up list of fastest mirrors


When using the yum install vnc-4_1_3-x86_linux
The Package vnc-4_1_3-x86_linux.rpm is not signed


,

Thank you.
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.