1 Reply Latest reply on May 24, 2019 10:53 AM by EJP

    YUM repository in RHEL

    Raghav_DBA

      I am trying to create yum repository in RHEL 6.9

      [root@rac1 RHEL-6.9 Server.x86_64]# pwd

      /media/RHEL-6.9 Server.x86_64

      [root@rac1 RHEL-6.9 Server.x86_64]# rpm -ivh Packages/vsftpd*

      [root@rac1 RHEL-6.9 Server.x86_64]# service vsftpd start

      [root@rac1 RHEL-6.9 Server.x86_64]# chkconfig vsftpd on

      [root@rac1 RHEL-6.9 Server.x86_64]# rpm -ivh Packages/createrepo

      [root@rac1 RHEL-6.9 Server.x86_64]# mkdir -p /var/ftp/rhel6/

      [root@rac1 RHEL-6.9 Server.x86_64]# cp -vrf * /var/ftp/rhel6/

      [root@rac1 RHEL-6.9 Server.x86_64]#cp /var/ftp/rhel6/Server/repodata/6508e2e3ad3cafc5dbf55faa55915339f6ace47c06a1cb38b78b4a16ddff7604-comps-Server.x86_64.xml /var/ftp/

      [root@rac1 RHEL-6.9 Server.x86_64]# createrepo -vg /var/ftp/6508e2e3ad3cafc5dbf55faa55915339f6ace47c06a1cb38b78b4a16ddff7604-comps-Server.x86_64.xml /var/ftp/rhel6/Server/

      but my rpm still not showing in yum list

       

      [root@rac1 RHEL-6.9 Server.x86_64]# yum list