Linux Yum installs Perl with local CD source

Source: Internet
Author: User
Tags gpg install perl



Reference: http://hi.baidu.com/pengduo66/item/abfe454f81cdb7e5a4c06675



Scenario Description: Choose to minimize the installation of the Linux operating system without the Perl tools installed. Because of network failure, you cannot install Perl from the Internet using Yum install Perl, only the original installation CD. Then try using the local CD as the installation source.



Step 1: Create a disc mount point



Mkdir/iso



Step 2: Mount the disc image



Mount-o Loop/centos-6.5-x86_64-bin-dvd1.iso/iso



Step 3: Set/etc/yum.repos.d/centos-media.repo, Fundamentals Specify the mount point of the disc



# Centos-media.repo



#Description, the source can use the mounted DVD source to specify a mount point. You can use this source to take advantage of Yum

#Install software directly from the CD image
# This repo can is used with mounted DVD media, verify the mount point for

# CentOS-6. You can use this repo and yum to install items directly off the

# DVD ISO that we release.

#Explanation: In order to use this source, you must connect to the DVD and use the following instructions:

# yum--enablerepo = c6-media Install XXXX

# To use this repo, put on your DVD and use it with the other repos too:

# yum--enablerepo = c6-media [command]

#Explanation: If you only want or can only use the media installation source, you must use the following command:

# yum--disablerepo = \ *-enablerepo = c6-media Install Perl

# or for the media repo, does this:

#

# yum--disablerepo = \ *-enablerepo = c6-media [command]

[C6-media]
name = centos- $ releasever-media

################### #modified statement ########################
baseurl = file: /// iso /

############ Specify the mount point of the disc ##########################



Gpgcheck=1



Enabled=0



Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6



Save exit.



Step 4:yum--disablerepo=\*--enablerepo=c6-media Install Perl



Loaded Plugins:fastestmirror



Loading mirror speeds from cached hostfile



C6-media | 4.0 KB 00:00 ...



c6-media/primary_db | 4.4 MB 00:00 ...



Setting up Install Process



Resolving Dependencies



--Running Transaction check



---> Package perl.x86_64 4:5.10.1-136.el6 'll be installed



--Processing Dependency:perl-libs = 4:5.10.1-136.el6 for package:4:perl-5.10.1-136.el6.x86_64



--processing dependency:perl-libs for package:4:perl-5.10.1-136.el6.x86_64



--processing Dependency:perl (version) for package:4:perl-5.10.1-136.el6.x86_64



--processing Dependency:perl (pod::simple) for package:4:perl-5.10.1-136.el6.x86_64



--Processing Dependency:perl (Module::P luggable) for package:4:perl-5.10.1-136.el6.x86_64



--processing Dependency:libperl.so () (64bit) for package:4:perl-5.10.1-136.el6.x86_64



--Running Transaction check



---> Package perl-module-pluggable.x86_64 1:3.90-136.el6 'll be installed



---> Package perl-pod-simple.x86_64 1:3.13-136.el6 'll be installed



--processing Dependency:perl (pod::escapes) >= 1.04 for package:1:perl-pod-simple-3.13-136.el6.x86_64



---> Package perl-libs.x86_64 4:5.10.1-136.el6 'll be installed



---> Package perl-version.x86_64 3:0.77-136.el6 'll be installed



--Running Transaction check



---> Package perl-pod-escapes.x86_64 1:1.04-136.el6 'll be installed



--Finished Dependency Resolution






Dependencies resolved






================================================================================



Package Arch Version Repository Size



================================================================================



Installing:



Perl x86_64 4:5.10.1-136.el6 C6-media M



Installing for dependencies:



Perl-module-pluggable x86_64 1:3.90-136.el6 C6-media k



Perl-pod-escapes x86_64 1:1.04-136.el6 C6-media-K



Perl-pod-simple x86_64 1:3.13-136.el6 C6-media 212 k



Perl-libs x86_64 4:5.10.1-136.el6 C6-media 578 k



Perl-version x86_64 3:0.77-136.el6 C6-media Wuyi k






Transaction Summary



================================================================================



Install 6 Package (s)






Total Download Size:11 M



Installed size:36 M



Is this OK [y/n]: Y



Downloading Packages:



--------------------------------------------------------------------------------



Total | MB/s | One MB 00:00



Warning:rpmts_HdrFromFdno:Header V3 rsa/sha1 Signature, key ID C105b9de:nokey



Retrieving Key from File:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6



Importing GPG key 0xc105b9de:



Userid:centos-6 Key (CentOS 6 official Signing key) <[email protected]>



package:centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-centos-201311272149.x86_64/6.5)



From:/etc/pki/rpm-gpg/rpm-gpg-key-centos-6



Is this OK [y/n]: Y



Running Rpm_check_debug



Running Transaction Test



Transaction Test Succeeded



Running Transaction



Warning:rpmdb altered outside of Yum.



Installing:1:perl-pod-escapes-1.04-136.el6.x86_64 1/6



Installing:4:perl-libs-5.10.1-136.el6.x86_64 2/6



Installing:1:perl-pod-simple-3.13-136.el6.x86_64 3/6



Installing:3:perl-version-0.77-136.el6.x86_64 4/6



Installing:1:perl-module-pluggable-3.90-136.el6.x86_64 5/6



Installing:4:perl-5.10.1-136.el6.x86_64 6/6



Verifying:1:perl-module-pluggable-3.90-136.el6.x86_64 1/6



Verifying:1:perl-pod-escapes-1.04-136.el6.x86_64 2/6



Verifying:4:perl-5.10.1-136.el6.x86_64 3/6



Verifying:4:perl-libs-5.10.1-136.el6.x86_64 4/6



Verifying:1:perl-pod-simple-3.13-136.el6.x86_64 5/6



Verifying:3:perl-version-0.77-136.el6.x86_64 6/6






Installed:



Perl.x86_64 4:5.10.1-136.el6






Dependency installed:



Perl-module-pluggable.x86_64 1:3.90-136.el6



Perl-pod-escapes.x86_64 1:1.04-136.el6



Perl-pod-simple.x86_64 1:3.13-136.el6



Perl-libs.x86_64 4:5.10.1-136.el6



Perl-version.x86_64 3:0.77-136.el6






complete!



Step 5: Detailed description and reference documentation are different



The reference document uses: C5-media and we are using C6-media, because the centos6.4 version is used.


The following error often occurs when using Yum for install
warning:rpmts_HdrFromFdno:Header V3 DSA signature:nokey, key ID 1ac70ce6
causes the installation to fail. Here's how to fix it:
[email protected] centos]# rpm--import/etc/pki/rpm-gpg/rpm-gpg-key-centos-5
[email protected] centos]# rpm--import/etc/pki/rpm-gpg/rpm-gpg-key-beta




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.