Build local yum service and yum Service

Source: Internet
Author: User

Build local yum service and yum Service
1. Prepare the linux ISO system image file (for example: rhel-server-5.5-i386-dvd.iso) 2. linux Virtual Machine (centos 7 192.168.50.24), start sshd service systemctl start httpd. service3, place the rhel-server-5.5-i386-dvd.iso to the virtual machine/dir 4, in the/var/www/html directory to create a folder redhat5.5 5, run the command mount-o loop/dir/rhel-server-5.5-i386-dvd.iso/var/www/ html/redhat5.5/access http through webpage: // 192.168.50.24/redhat5.5/check that the local client is set in/etc/yum. repos. d/directory to modify file rhel-source.repo (not available to add directly) add content [rhel-source] name = Red Hat Enterprise Linux $ releasever-Sourcebaseurl = http: // 192.168.50.24/redhat5.5/Serverenabled = 1
Gpgcheck = 1 gpgkey = run the command: service yum-updatesd restart yum installation report Public key for *. rpm is not installed solution example:

Loaded plugins: rhnplugin, securityThis system is not registered with RHN.RHN support will be disabled.rhel-source                                                                                                                                                                                                           | 1.3 kB     00:00     rhel-source/primary                                                                                                                                                                                                   | 777 kB     00:00     rhel-source                                                                                                                                                                                                                        2428/2428Setting up Install ProcessResolving Dependencies--> Running transaction check---> Package gcc.i386 0:4.1.2-50.el5 set to be updated--> Processing Dependency: cpp = 4.1.2-50.el5 for package: gcc--> Processing Dependency: libgcc >= 4.1.2-50.el5 for package: gcc--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc--> Processing Dependency: libgomp >= 4.1.2-50.el5 for package: gcc--> Running transaction check---> Package cpp.i386 0:4.1.2-50.el5 set to be updated---> Package glibc-devel.i386 0:2.5-58 set to be updated--> Processing Dependency: glibc = 2.5-58 for package: glibc-devel--> Processing Dependency: glibc-headers = 2.5-58 for package: glibc-devel--> Processing Dependency: glibc-headers for package: glibc-devel---> Package libgcc.i386 0:4.1.2-50.el5 set to be updated---> Package libgomp.i386 0:4.4.4-13.el5 set to be updated--> Running transaction check--> Processing Dependency: glibc = 2.5-49 for package: nscd---> Package glibc.i686 0:2.5-58 set to be updated--> Processing Dependency: glibc-common = 2.5-58 for package: glibc---> Package glibc-headers.i386 0:2.5-58 set to be updated--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers--> Processing Dependency: kernel-headers for package: glibc-headers--> Running transaction check---> Package glibc-common.i386 0:2.5-58 set to be updated---> Package kernel-headers.i386 0:2.6.18-238.el5 set to be updated---> Package nscd.i386 0:2.5-58 set to be updated--> Finished Dependency ResolutionDependencies Resolved============================================================================================================================================================================================================================================= Package                                                     Arch                                              Version                                                        Repository                                                Size=============================================================================================================================================================================================================================================Installing: gcc                                                         i386                                              4.1.2-50.el5                                                   rhel-source                                              5.2 MInstalling for dependencies: cpp                                                         i386                                              4.1.2-50.el5                                                   rhel-source                                              2.7 M glibc-devel                                                 i386                                              2.5-58                                                         rhel-source                                              2.0 M glibc-headers                                               i386                                              2.5-58                                                         rhel-source                                              603 k kernel-headers                                              i386                                              2.6.18-238.el5                                                 rhel-source                                              1.1 M libgomp                                                     i386                                              4.4.4-13.el5                                                   rhel-source                                               72 kUpdating for dependencies: glibc                                                       i686                                              2.5-58                                                         rhel-source                                              5.3 M glibc-common                                                i386                                              2.5-58                                                         rhel-source                                               16 M libgcc                                                      i386                                              4.1.2-50.el5                                                   rhel-source                                               96 k nscd                                                        i386                                              2.5-58                                                         rhel-source                                              166 kTransaction Summary=============================================================================================================================================================================================================================================Install       6 Package(s)Upgrade       4 Package(s)Total download size: 34 MIs this ok [y/N]: yDownloading Packages:(1/10): glibc-headers-2.5-58.i386.rpm                                                                                                                                                                                 | 603 kB     00:00     (2/10): libgcc-4.1.2-50.el5.i386.rpm                                                                                                                                                                                  |  96 kB     00:00     (3/10): glibc-devel-2.5-58.i386.rpm                                                                                                                                                                                   | 2.0 MB     00:00     (4/10): nscd-2.5-58.i386.rpm                                                                                                                                                                                          | 166 kB     00:00     (5/10): glibc-common-2.5-58.i386.rpm                                                                                                                                                                                  |  16 MB     00:11     (6/10): glibc-2.5-58.i686.rpm                                                                                                                                                                                         | 5.3 MB     00:01     (7/10): cpp-4.1.2-50.el5.i386.rpm                                                                                                                                                                                     | 2.7 MB     00:00     (8/10): libgomp-4.4.4-13.el5.i386.rpm                                                                                                                                                                                 |  72 kB     00:00     (9/10): kernel-headers-2.6.18-238.el5.i386.rpm                                                                                                                                                                        | 1.1 MB     00:00     (10/10): gcc-4.1.2-50.el5.i386.rpm                                                                                                                                                                                    | 5.2 MB     00:01     ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                                                                                                                        2.0 MB/s |  34 MB     00:16     warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186Public key for glibc-headers-2.5-58.i386.rpm is not installed


Import the rpm signature information.

Log On As root and run the following command # rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

 

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.