Rabu, 02 Januari 2019

How to install package from DVD iso

  Tidak ada komentar
Running the following command on terminal
[root@myhost ~]# ls /mnt/
cdrom
[root@myhost ~]# ls /mnt/cdrom/
CentOS_BuildTag  GPL       LiveOS    RPM-GPG-KEY-CentOS-7
EFI              images    Packages  RPM-GPG-KEY-CentOS-Testing-7
EULA             isolinux  repodata  TRANS.TBL
[root@myhost ~]#
[root@myhost ~]# vi /etc/yum.repos.d/CentOS-Media.repo
[root@myhost ~]#
[root@myhost ~]# ls /media/
[root@myhost ~]#
[root@myhost ~]# vi /etc/yum.repos.d/CentOS-Media.repo
[root@myhost ~]#
[root@myhost ~]# vi /etc/yum.repos.d/CentOS-Media.repo
[root@myhost ~]#
[root@myhost ~]#  yum --disablerepo=\* --enablerepo=c7-media install perl
Loaded plugins: fastestmirror


Error getting repository data for c7-media, repository not found
[root@pelaut233 ~]# vi /etc/yum.repos.d/CentOS-Media.repo
[root@pelaut233 ~]#
[root@pelaut233 ~]#  yum --disablerepo=\* --enablerepo=c7-media install perl
Loaded plugins: fastestmirror
file:///media/CentOS/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open fi                                                      le /media/CentOS/repodata/repomd.xml"
Trying other mirror.
file:///media/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open fil                                                      e /media/cdrom/repodata/repomd.xml"
Trying other mirror.
c7-media                                                 | 3.6 kB     00:00
c7-media/group_gz              FAILED
file:///media/CentOS/repodata/bc140c8149fc43a5248fccff0daeef38182e49f6fe75d9b46d                                                      b1206dc25a6c1c-c7-x86_64-comps.xml.gz: [Errno 14] curl#37 - "Couldn't open file                                                       /media/CentOS/repodata/bc140c8149fc43a5248fccff0daeef38182e49f6fe75d9b46db1206dc                                                      25a6c1c-c7-x86_64-comps.xml.gz"
Trying other mirror.
c7-media/primary_db            FAILED
file:///media/cdrom/repodata/2ff4471767c82fed8b27981c603e3dc9d6559ca69e162f5ca2b                                                      b53f2450c8b08-primary.sqlite.bz2: [Errno 14] curl#37 - "Couldn't open file /medi                                                      a/cdrom/repodata/2ff4471767c82fed8b27981c603e3dc9d6559ca69e162f5ca2bb53f2450c8b0                                                      8-primary.sqlite.bz2"
Trying other mirror.
c7-media/primary_db            FAILED
file:///media/cdrecorder/repodata/2ff4471767c82fed8b27981c603e3dc9d6559ca69e162f                                                      5ca2bb53f2450c8b08-primary.sqlite.bz2: [Errno 14] curl#37 - "Couldn't open file                                                       /media/cdrecorder/repodata/2ff4471767c82fed8b27981c603e3dc9d6559ca69e162f5ca2bb5                                                      3f2450c8b08-primary.sqlite.bz2"
Trying other mirror.
(1/2): c7-media/group_gz                                   | 166 kB   00:00
(2/2): c7-media/primary_db                                 | 3.1 MB   00:00
Determining fastest mirrors
 * c7-media:
Resolving Dependencies
--> Running transaction check
---> Package perl.x86_64 4:5.16.3-293.el7 will be installed
--> Processing Dependency: perl-libs = 4:5.16.3-293.el7 for package: 4:perl-5.16                                                      .3-293.el7.x86_64
--> Processing Dependency: perl(Socket) >= 1.3 for package: 4:perl-5.16.3-293.el                                                      7.x86_64
--> Processing Dependency: perl(Scalar::Util) >= 1.10 for package: 4:perl-5.16.3                                                      -293.el7.x86_64
--> Processing Dependency: perl-macros for package: 4:perl-5.16.3-293.el7.x86_64
--> Processing Dependency: perl-libs for package: 4:perl-5.16.3-293.el7.x86_64
--> Processing Dependency: perl(threads::shared) for package: 4:perl-5.16.3-293.                                                      el7.x86_64
--> Processing Dependency: perl(threads) for package: 4:perl-5.16.3-293.el7.x86_                                                      64
--> Processing Dependency: perl(constant) for package: 4:perl-5.16.3-293.el7.x86                                                      _64
--> Processing Dependency: perl(Time::Local) for package: 4:perl-5.16.3-293.el7.                                                      x86_64
--> Processing Dependency: perl(Time::HiRes) for package: 4:perl-5.16.3-293.el7.                                                      x86_64
--> Processing Dependency: perl(Storable) for package: 4:perl-5.16.3-293.el7.x86                                                      _64
--> Processing Dependency: perl(Socket) for package: 4:perl-5.16.3-293.el7.x86_6                                                      4
--> Processing Dependency: perl(Scalar::Util) for package: 4:perl-5.16.3-293.el7                                                      .x86_64
--> Processing Dependency: perl(Pod::Simple::XHTML) for package: 4:perl-5.16.3-2                                                      93.el7.x86_64
--> Processing Dependency: perl(Pod::Simple::Search) for package: 4:perl-5.16.3-                                                      293.el7.x86_64
--> Processing Dependency: perl(Getopt::Long) for package: 4:perl-5.16.3-293.el7                                                      .x86_64
--> Processing Dependency: perl(Filter::Util::Call) for package: 4:perl-5.16.3-2                                                      93.el7.x86_64
--> Processing Dependency: perl(File::Temp) for package: 4:perl-5.16.3-293.el7.x                                                      86_64
--> Processing Dependency: perl(File::Spec::Unix) for package: 4:perl-5.16.3-293                                                      .el7.x86_64
--> Processing Dependency: perl(File::Spec::Functions) for package: 4:perl-5.16.                                                      3-293.el7.x86_64
--> Processing Dependency: perl(File::Spec) for package: 4:perl-5.16.3-293.el7.x                                                      86_64
--> Processing Dependency: perl(File::Path) for package: 4:perl-5.16.3-293.el7.x                                                      86_64
--> Processing Dependency: perl(Exporter) for package: 4:perl-5.16.3-293.el7.x86                                                      _64
--> Processing Dependency: perl(Cwd) for package: 4:perl-5.16.3-293.el7.x86_64
--> Processing Dependency: perl(Carp) for package: 4:perl-5.16.3-293.el7.x86_64
--> Processing Dependency: libperl.so()(64bit) for package: 4:perl-5.16.3-293.el                                                      7.x86_64
--> Running transaction check
---> Package perl-Carp.noarch 0:1.26-244.el7 will be installed
---> Package perl-Exporter.noarch 0:5.68-3.el7 will be installed
---> Package perl-File-Path.noarch 0:2.09-2.el7 will be installed
---> Package perl-File-Temp.noarch 0:0.23.01-3.el7 will be installed
---> Package perl-Filter.x86_64 0:1.49-3.el7 will be installed
---> Package perl-Getopt-Long.noarch 0:2.40-3.el7 will be installed
--> Processing Dependency: perl(Pod::Usage) >= 1.14 for package: perl-Getopt-Lon                                                      g-2.40-3.el7.noarch
--> Processing Dependency: perl(Text::ParseWords) for package: perl-Getopt-Long-                                                      2.40-3.el7.noarch
---> Package perl-PathTools.x86_64 0:3.40-5.el7 will be installed
---> Package perl-Pod-Simple.noarch 1:3.28-4.el7 will be installed
--> Processing Dependency: perl(Pod::Escapes) >= 1.04 for package: 1:perl-Pod-Si                                                      mple-3.28-4.el7.noarch
--> Processing Dependency: perl(Encode) for package: 1:perl-Pod-Simple-3.28-4.el                                                      7.noarch
---> Package perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 will be installed
---> Package perl-Socket.x86_64 0:2.010-4.el7 will be installed
---> Package perl-Storable.x86_64 0:2.45-3.el7 will be installed
---> Package perl-Time-HiRes.x86_64 4:1.9725-3.el7 will be installed
---> Package perl-Time-Local.noarch 0:1.2300-2.el7 will be installed
---> Package perl-constant.noarch 0:1.27-2.el7 will be installed
---> Package perl-libs.x86_64 4:5.16.3-293.el7 will be installed
---> Package perl-macros.x86_64 4:5.16.3-293.el7 will be installed
---> Package perl-threads.x86_64 0:1.87-4.el7 will be installed
---> Package perl-threads-shared.x86_64 0:1.43-6.el7 will be installed
--> Running transaction check
---> Package perl-Encode.x86_64 0:2.51-7.el7 will be installed
---> Package perl-Pod-Escapes.noarch 1:1.04-293.el7 will be installed
---> Package perl-Pod-Usage.noarch 0:1.63-3.el7 will be installed
--> Processing Dependency: perl(Pod::Text) >= 3.15 for package: perl-Pod-Usage-1                                                      .63-3.el7.noarch
--> Processing Dependency: perl-Pod-Perldoc for package: perl-Pod-Usage-1.63-3.e                                                      l7.noarch
---> Package perl-Text-ParseWords.noarch 0:3.29-4.el7 will be installed
--> Running transaction check
---> Package perl-Pod-Perldoc.noarch 0:3.20-4.el7 will be installed
--> Processing Dependency: perl(parent) for package: perl-Pod-Perldoc-3.20-4.el7                                                      .noarch
--> Processing Dependency: perl(HTTP::Tiny) for package: perl-Pod-Perldoc-3.20-4                                                      .el7.noarch
---> Package perl-podlators.noarch 0:2.5.1-3.el7 will be installed
--> Running transaction check
---> Package perl-HTTP-Tiny.noarch 0:0.033-3.el7 will be installed
---> Package perl-parent.noarch 1:0.225-244.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch       Version               Repository    Size
================================================================================
Installing:
 perl                       x86_64     4:5.16.3-293.el7      c7-media     8.0 M
Installing for dependencies:
 perl-Carp                  noarch     1.26-244.el7          c7-media      19 k
 perl-Encode                x86_64     2.51-7.el7            c7-media     1.5 M
 perl-Exporter              noarch     5.68-3.el7            c7-media      28 k
 perl-File-Path             noarch     2.09-2.el7            c7-media      26 k
 perl-File-Temp             noarch     0.23.01-3.el7         c7-media      56 k
 perl-Filter                x86_64     1.49-3.el7            c7-media      76 k
 perl-Getopt-Long           noarch     2.40-3.el7            c7-media      56 k
 perl-HTTP-Tiny             noarch     0.033-3.el7           c7-media      38 k
 perl-PathTools             x86_64     3.40-5.el7            c7-media      82 k
 perl-Pod-Escapes           noarch     1:1.04-293.el7        c7-media      51 k
 perl-Pod-Perldoc           noarch     3.20-4.el7            c7-media      87 k
 perl-Pod-Simple            noarch     1:3.28-4.el7          c7-media     216 k
 perl-Pod-Usage             noarch     1.63-3.el7            c7-media      27 k
 perl-Scalar-List-Utils     x86_64     1.27-248.el7          c7-media      36 k
 perl-Socket                x86_64     2.010-4.el7           c7-media      49 k
 perl-Storable              x86_64     2.45-3.el7            c7-media      77 k
 perl-Text-ParseWords       noarch     3.29-4.el7            c7-media      14 k
 perl-Time-HiRes            x86_64     4:1.9725-3.el7        c7-media      45 k
 perl-Time-Local            noarch     1.2300-2.el7          c7-media      24 k
 perl-constant              noarch     1.27-2.el7            c7-media      19 k
 perl-libs                  x86_64     4:5.16.3-293.el7      c7-media     688 k
 perl-macros                x86_64     4:5.16.3-293.el7      c7-media      44 k
 perl-parent                noarch     1:0.225-244.el7       c7-media      12 k
 perl-podlators             noarch     2.5.1-3.el7           c7-media     112 k
 perl-threads               x86_64     1.87-4.el7            c7-media      49 k
 perl-threads-shared        x86_64     1.43-6.el7            c7-media      39 k

Transaction Summary
================================================================================
Install  1 Package (+26 Dependent packages)

Total download size: 11 M
Installed size: 36 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /mnt/cdrom/Packages/perl-5.16.3-293.el7.x86_64.rpm: Header V3 RSA/SHA25                                                      6 Signature, key ID f4a80eb5: NOKEY
Public key for perl-5.16.3-293.el7.x86_64.rpm is not installed
--------------------------------------------------------------------------------
Total                                              8.6 MB/s |  11 MB  00:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Importing GPG key 0xF4A80EB5:
 Userid     : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]                                                      >"
 Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
 Package    : centos-release-7-1.1503.el7.centos.2.7.x86_64 (@anaconda)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:perl-parent-0.225-244.el7.noarch                          1/27
  Installing : perl-HTTP-Tiny-0.033-3.el7.noarch                           2/27
  Installing : perl-podlators-2.5.1-3.el7.noarch                           3/27
  Installing : perl-Pod-Perldoc-3.20-4.el7.noarch                          4/27
  Installing : 1:perl-Pod-Escapes-1.04-293.el7.noarch                      5/27
  Installing : perl-Encode-2.51-7.el7.x86_64                               6/27
  Installing : perl-Text-ParseWords-3.29-4.el7.noarch                      7/27
  Installing : perl-Pod-Usage-1.63-3.el7.noarch                            8/27
  Installing : 4:perl-macros-5.16.3-293.el7.x86_64                         9/27
  Installing : perl-Storable-2.45-3.el7.x86_64                            10/27
  Installing : perl-Exporter-5.68-3.el7.noarch                            11/27
  Installing : perl-constant-1.27-2.el7.noarch                            12/27
  Installing : perl-Time-Local-1.2300-2.el7.noarch                        13/27
  Installing : perl-Socket-2.010-4.el7.x86_64                             14/27
  Installing : perl-Carp-1.26-244.el7.noarch                              15/27
  Installing : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      16/27
  Installing : perl-PathTools-3.40-5.el7.x86_64                           17/27
  Installing : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 18/27
  Installing : 1:perl-Pod-Simple-3.28-4.el7.noarch                        19/27
  Installing : perl-File-Temp-0.23.01-3.el7.noarch                        20/27
  Installing : perl-File-Path-2.09-2.el7.noarch                           21/27
  Installing : perl-threads-shared-1.43-6.el7.x86_64                      22/27
  Installing : perl-threads-1.87-4.el7.x86_64                             23/27
  Installing : perl-Filter-1.49-3.el7.x86_64                              24/27
  Installing : 4:perl-libs-5.16.3-293.el7.x86_64                          25/27
  Installing : perl-Getopt-Long-2.40-3.el7.noarch                         26/27
  Installing : 4:perl-5.16.3-293.el7.x86_64                               27/27
  Verifying  : perl-HTTP-Tiny-0.033-3.el7.noarch                           1/27
  Verifying  : perl-threads-shared-1.43-6.el7.x86_64                       2/27
  Verifying  : perl-Storable-2.45-3.el7.x86_64                             3/27
  Verifying  : perl-Exporter-5.68-3.el7.noarch                             4/27
  Verifying  : perl-constant-1.27-2.el7.noarch                             5/27
  Verifying  : perl-PathTools-3.40-5.el7.x86_64                            6/27
  Verifying  : 4:perl-macros-5.16.3-293.el7.x86_64                         7/27
  Verifying  : 1:perl-parent-0.225-244.el7.noarch                          8/27
  Verifying  : perl-File-Temp-0.23.01-3.el7.noarch                         9/27
  Verifying  : 1:perl-Pod-Simple-3.28-4.el7.noarch                        10/27
  Verifying  : perl-Time-Local-1.2300-2.el7.noarch                        11/27
  Verifying  : 1:perl-Pod-Escapes-1.04-293.el7.noarch                     12/27
  Verifying  : perl-Socket-2.010-4.el7.x86_64                             13/27
  Verifying  : perl-Carp-1.26-244.el7.noarch                              14/27
  Verifying  : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                      15/27
  Verifying  : perl-Scalar-List-Utils-1.27-248.el7.x86_64                 16/27
  Verifying  : perl-Pod-Usage-1.63-3.el7.noarch                           17/27
  Verifying  : perl-Encode-2.51-7.el7.x86_64                              18/27
  Verifying  : perl-Pod-Perldoc-3.20-4.el7.noarch                         19/27
  Verifying  : perl-podlators-2.5.1-3.el7.noarch                          20/27
  Verifying  : 4:perl-5.16.3-293.el7.x86_64                               21/27
  Verifying  : perl-File-Path-2.09-2.el7.noarch                           22/27
  Verifying  : perl-threads-1.87-4.el7.x86_64                             23/27
  Verifying  : perl-Filter-1.49-3.el7.x86_64                              24/27
  Verifying  : perl-Getopt-Long-2.40-3.el7.noarch                         25/27
  Verifying  : perl-Text-ParseWords-3.29-4.el7.noarch                     26/27
  Verifying  : 4:perl-libs-5.16.3-293.el7.x86_64                          27/27

Installed:
  perl.x86_64 4:5.16.3-293.el7

Dependency Installed:
  perl-Carp.noarch 0:1.26-244.el7
  perl-Encode.x86_64 0:2.51-7.el7
  perl-Exporter.noarch 0:5.68-3.el7
  perl-File-Path.noarch 0:2.09-2.el7
  perl-File-Temp.noarch 0:0.23.01-3.el7
  perl-Filter.x86_64 0:1.49-3.el7
  perl-Getopt-Long.noarch 0:2.40-3.el7
  perl-HTTP-Tiny.noarch 0:0.033-3.el7
  perl-PathTools.x86_64 0:3.40-5.el7
  perl-Pod-Escapes.noarch 1:1.04-293.el7
  perl-Pod-Perldoc.noarch 0:3.20-4.el7
  perl-Pod-Simple.noarch 1:3.28-4.el7
  perl-Pod-Usage.noarch 0:1.63-3.el7
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7
  perl-Socket.x86_64 0:2.010-4.el7
  perl-Storable.x86_64 0:2.45-3.el7
  perl-Text-ParseWords.noarch 0:3.29-4.el7
  perl-Time-HiRes.x86_64 4:1.9725-3.el7
  perl-Time-Local.noarch 0:1.2300-2.el7
  perl-constant.noarch 0:1.27-2.el7
  perl-libs.x86_64 4:5.16.3-293.el7
  perl-macros.x86_64 4:5.16.3-293.el7
  perl-parent.noarch 1:0.225-244.el7
  perl-podlators.noarch 0:2.5.1-3.el7
  perl-threads.x86_64 0:1.87-4.el7
  perl-threads-shared.x86_64 0:1.43-6.el7

Complete!
[root@myhost ~]#

for example

Tidak ada komentar :

Posting Komentar