Sunday, 30 September 2018

local repo in redhat7.0

create directory
# mkdir -p /isomount7.0
copy file from
#cp /run/media/root/RHEL-7.0\ Server.x86_64/Packages/* /isomount7.0
#createrepo /isomount7.0
#vi /etc/yum.repos.d/custom.repo
custom.repo

#cat custom.repo
[custom]
name=custom
baseurl=file:///isomount7.0
enabled=1
gpgcheck=0


#yum repolist
 #yum install httpd -y
 Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.4.6-17.el7 will be installed
--> Processing Dependency: httpd-tools = 2.4.6-17.el7 for package: httpd-2.4.6-17.el7.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-17.el7.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-17.el7.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-17.el7.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-3.el7 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---> Package httpd-tools.x86_64 0:2.4.6-17.el7 will be installed
---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                                Arch                              Version                                    Repository                         Size
=============================================================================================================================================================
Installing:
 httpd                                  x86_64                            2.4.6-17.el7                               custom                            1.2 M
Installing for dependencies:
 apr                                    x86_64                            1.4.8-3.el7                                custom                            103 k
 apr-util                               x86_64                            1.5.2-6.el7                                custom                             92 k
 httpd-tools                            x86_64                            2.4.6-17.el7                               custom                             77 k
 mailcap                                noarch                            2.1.41-2.el7                               custom                             31 k

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

Total download size: 1.5 M
Installed size: 4.3 M
Downloading packages:
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                        171 MB/s | 1.5 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : apr-1.4.8-3.el7.x86_64                                                                                                                    1/5
  Installing : apr-util-1.5.2-6.el7.x86_64                                                                                                               2/5
  Installing : httpd-tools-2.4.6-17.el7.x86_64                                                                                                           3/5
  Installing : mailcap-2.1.41-2.el7.noarch                                                                                                               4/5
  Installing : httpd-2.4.6-17.el7.x86_64                                                                                                                 5/5
  Verifying  : mailcap-2.1.41-2.el7.noarch                                                                                                               1/5
  Verifying  : httpd-tools-2.4.6-17.el7.x86_64                                                                                                           2/5
  Verifying  : apr-util-1.5.2-6.el7.x86_64                                                                                                               3/5
  Verifying  : apr-1.4.8-3.el7.x86_64                                                                                                                    4/5
  Verifying  : httpd-2.4.6-17.el7.x86_64                                                                                                                 5/5

Installed:
  httpd.x86_64 0:2.4.6-17.el7

Dependency Installed:
  apr.x86_64 0:1.4.8-3.el7          apr-util.x86_64 0:1.5.2-6.el7          httpd-tools.x86_64 0:2.4.6-17.el7          mailcap.noarch 0:2.1.41-2.el7

Complete!
===============

yum install mod_ssl -y
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.4.6-17.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                             Arch                               Version                                     Repository                          Size
=============================================================================================================================================================
Installing:
 mod_ssl                             x86_64                             1:2.4.6-17.el7                              custom                              97 k

Transaction Summary
=============================================================================================================================================================
Install  1 Package

Total download size: 97 k
Installed size: 219 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:mod_ssl-2.4.6-17.el7.x86_64                                                                                                             1/1
  Verifying  : 1:mod_ssl-2.4.6-17.el7.x86_64                                                                                                             1/1

Installed:
  mod_ssl.x86_64 1:2.4.6-17.el7

Complete!
[root@veefinapp2 isomount7.0]# yum install telnet -y
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-59.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                            Arch                               Version                                      Repository                          Size
=============================================================================================================================================================
Installing:
 telnet                             x86_64                             1:0.17-59.el7                                custom                              63 k

Transaction Summary
=============================================================================================================================================================
Install  1 Package

Total download size: 63 k
Installed size: 113 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:telnet-0.17-59.el7.x86_64                                                                                                               1/1
  Verifying  : 1:telnet-0.17-59.el7.x86_64                                                                                                               1/1

Installed:
  telnet.x86_64 1:0.17-59.el7

Complete!




No comments:

Post a Comment