thanks for guiding. I does not use now iso file. with "deep27ak" method I try but it does not work so I just keep all things inside the directories as i previously do .I think it does not matter that u keep things in the root or make sub directories.
Ok I copy all rpm files from my dvd to
var/ftp/pub/server
and then use createrepo for the above path.
Under /etc/yum.repos.d I create a new file i.e server.repo
Code:
[server]
name=Centos Repo
bauseurl=file:///var/ftp/pub/server
gpgcheck=0
enabled=1
then
Code:
#yum clean all
#yum update
#yum list
For ftp
Code:
#vi vsftpd.conf
anon_root=/var/ftp/pub/server
Now start the # service vsftpd restart
On client side
Under /etc/yum.repos.d create a new filei.e server.repo
vi /etc/yum.repos.d/client.repo
[client]
name=client
baseurl=ftp://192.168.1.10/pub/server/
gpgcheck=0
enabled=1
In the browser when i try
ftp://192.168.1.10/pub
it does not show any thing. But by clicking "Up to hirelevel directory" two times I can see all rpm files as "deep27ak" show in the attachment
i.e
Code:
ftp://192.168.1.10/../../
The issue is now why it does two times up to the directories and show the rpm file?
Actually the couuect way was by just typing in the browser
ftp://192.168.1.10
but here nothing.