Not sure why you have installed vsftpd because you are not at all using it anyway. In your baseurl you have given the local path and vsftpd installation has nothing to do with it.
Have no idea on what these steps do:
Quote:
3. copied Packages and this file 1a7fc54d30d0d44222742c63069ab0126afef9f160931cc15e564dbe6414f268-comps-rhel6-Server.xml to /var/ftp/pub/server
4. mv 1a7fc54d30d0d44222742c63069ab0126afef9f160931cc15e564dbe6414f268-comps-rhel6-Server.xml comps.xml
5. createrepo -g comps.xml -v /var/ftp/pub/server
|
A simple approach would be:
1. Install following packages:
deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
createrepo-0.9.8-4.el6.noarch.rpm
2. mkdir /var/myrepo
3. Copy all the packages which you want to be in your repo to: /var/myrepo
4. Run the following command:
Code:
createrepo /var/myrepo
5. vi /etc/yum.repos.d/myrepo.repo and put the following contents:
Code:
[myrepo]
name=myrepo
baseurl=file:///var/myrepo
enabled=1
gpgcheck=0
6. Once done with step 5 run the following commands:
Code:
yum clean all
yum repolist
If this is only for local repository then the above should do. If you want to make this server available as repository server for other servers in the network then you have to configure httpd or vsftpd accordingly.