Forum Stats

  • 3,854,640 Users
  • 2,264,394 Discussions
  • 7,905,745 Comments

Discussions

YUM repository in RHEL

Raghav_DBA
Raghav_DBA Member Posts: 96 Red Ribbon
edited May 24, 2019 6:53AM in Networking

I am trying to create yum repository in RHEL 6.9

[[email protected] RHEL-6.9 Server.x86_64]# pwd

/media/RHEL-6.9 Server.x86_64

[[email protected] RHEL-6.9 Server.x86_64]# rpm -ivh Packages/vsftpd*

[[email protected] RHEL-6.9 Server.x86_64]# service vsftpd start

[[email protected] RHEL-6.9 Server.x86_64]# chkconfig vsftpd on

[[email protected] RHEL-6.9 Server.x86_64]# rpm -ivh Packages/createrepo

[[email protected] RHEL-6.9 Server.x86_64]# mkdir -p /var/ftp/rhel6/

[[email protected] RHEL-6.9 Server.x86_64]# cp -vrf * /var/ftp/rhel6/

[[email protected] RHEL-6.9 Server.x86_64]#cp /var/ftp/rhel6/Server/repodata/6508e2e3ad3cafc5dbf55faa55915339f6ace47c06a1cb38b78b4a16ddff7604-comps-Server.x86_64.xml /var/ftp/

[[email protected] 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

[[email protected] RHEL-6.9 Server.x86_64]# yum list

pastedImage_0.png

Answers