Skip to main content
How to create Yum respository in RHEL 7

This blog shows the various steps needed to create a Yum repository in RHEL 7

1. Mount the ISO CD to your server

2. Navigate to the Packages directory under the ISO CD

[root@dev1 RHEL-7.3 Server.x86_64]# pwd
/run/media/root/RHEL-7.3 Server.x86_64
[root@dev1 RHEL-7.3 Server.x86_64]# ls -ltr
total 894
-r--r--r--.  1 root root  18092 Mar  6  2012 GPL
-r--r--r--.  1 root root   8266 Apr  4  2014 EULA
-r--r--r--.  1 root root   3211 Sep 27  2016 RPM-GPG-KEY-redhat-release
-r--r--r--.  1 root root   3375 Sep 27  2016 RPM-GPG-KEY-redhat-beta
-r--r--r--.  1 root root    114 Oct 19  2016 media.repo
-r--r--r--.  1 root root   1568 Oct 19  2016 TRANS.TBL
dr-xr-xr-x.  2 root root   4096 Oct 19  2016 repodata
dr-xr-xr-x. 24 root root   6144 Oct 19  2016 release-notes
dr-xr-xr-x.  2 root root 858112 Oct 19  2016 Packages
dr-xr-xr-x.  2 root root   2048 Oct 19  2016 LiveOS
dr-xr-xr-x.  2 root root   2048 Oct 19  2016 isolinux
dr-xr-xr-x.  3 root root   2048 Oct 19  2016 images
dr-xr-xr-x.  3 root root   2048 Oct 19  2016 EFI
dr-xr-xr-x.  4 root root   2048 Oct 19  2016 addons
[root@dev1 RHEL-7.3 Server.x86_64]#


3. Create a folder to copy the packages on the server. 

[root@dev1 ~]# pwd
/root
[root@dev1 ~]# mkdir repo

[root@dev1 repo]# pwd
/root/repo


4. Copy Packages from ISO cd to the folder created above (Step 3)

[root@dev1 RHEL-7.3 Server.x86_64]# cp Packages/* /root/repo/

....
....

[After files are copies]

[root@dev1 repo]# pwd
/root/repo
[root@dev1 repo]# ls -ltr *.rpm | wc -l
4751
[root@dev1 repo]#


5. Install createrepo package
[root@dev1 repo]# rpm -ivh createrepo-0.9.9-26.el7.noarch.rpm
warning: createrepo-0.9.9-26.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                          ################################# [100%]
        package createrepo-0.9.9-26.el7.noarch is already installed
[root@dev1 repo]#

[In my case, its already installed]

6.  Create the repository using createrepo command

[root@dev1 repo]# createrepo /root/repo
Spawning worker 0 with 4751 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@dev1 repo]#


7. 

Comments

Popular posts from this blog

12.1.0 Grid Installation on Solaris 11.3 fails with ASM failed to start

Issue Description  We faced one issue, while installing the GI 12.1.0.1.0 on Solaris 11.3  ASM failed to start. Check /u01/app/grid/cfgtoollogs/asmca/asmca-201202PM061908.log for details. 2020/12/02 18:19:17 CLSRSC-184: Configuration of ASM failed 2020/12/02 18:19:17 CLSRSC-258: Failed to configure and start ASM Died at /u01/app/12.1.0/grid_1/crs/install/crsinstall.pm line 1976. The command '/u01/app/12.1.0/grid_1/perl/bin/perl -I/u01/app/12.1.0/grid_1/perl/lib -I/u01/app/12.1.0/grid_1/crs/install /u01/app/12.1.0/grid_1/crs/install/rootcrs.pl ' execution failed This error is coming during root.sh execution on primary node. After checking the asmca logs, the error seen is as below: ========================== [main] [ 2020-12-02 17:00:49.575 AST ] [UsmcaLogger.logException:156] SEVERE:method oracle.sysman.assistants.usmca.backend.USMInstance:configureLocalASM [main] [ 2020-12-02 17:00:49.575 AST ] [UsmcaLogger.logException:157] ORA-27122: unable to protect memory [main] [ 2020-1...

Health Check Script

Oracle Database Health Check Script Run this script has sysdba user or any user having DBA Role Change the spool file patch to correct directory. In this example it is set to  /export/home/oraprod/ $ cat Health_Check_Script.sql set pagesize 1100 SET MARKUP HTML ON SPOOL ON spool /export/home/oraprod/health_check_new.html set feedback off set linesize 200; set pages 50 set lines 1000 set pages 70 set heading on PROMPT================================================================ prompt PROMPT PROMPT Daily_Monitoring Checkup Report prompt ================================================================================================================================================= PROMPT REPORT DATE select to_char(sysdate,'DD-MON-YYYY:HH:MI:SS') "Report Run Date" from dual; prompt DATABASE NAME PROMPT ============== select instance_name,host_name,version,status from gv$instance ,v$database a; PROMPT DATABASE INFO PROMPT =============...

12.2 Stage area creation fails with startCD/Disk1/rapidwiz/bin/../jre/Linux_x64/1.6.0/bin/java: No such file or directory

 12.2 Stage area creation fails with startCD/Disk1/rapidwiz/bin/../jre/Linux_x64/1.6.0/bin/java: No such file or directory While creating the stage area for 12.2 Installation, we face issue while running the buildstage.sh ....startCD/Disk1/rapidwiz/bin/../jre/Linux_x64/1.6.0/bin/java: No such file or directory Solution:  Please go to the path provided in the error log and check if the java is working fine with below command: java -version Generally this java is having some issues.   Install the jre 7 or jre 8 and copy the the jre at the same path by renaming old folder. It should work fine.  Now if your run the build command again, it should succeed.  Running command: /u01/soft/ebs/startCD/Disk1/rapidwiz/bin/../jre/Linux_x64/1.6.0/bin/java -classpath /u01/soft/ebs/startCD/Disk1/rapidwiz/bin/../jlib/emocmutl.jar:/u01/soft/ebs/startCD/Disk1/rapidwiz/bin/../jlib/ewt-3_4_22.jar:/u01/soft/ebs/startCD/Disk1/rapidwiz/bin/../jlib/share-1_1_18.jar:/u01/soft/ebs/star...