my rpms are in /home/sefa/Desktop/repo_2
i run this command:
Code:
createrepo -o /home/sefa/Desktop /home/sefa/Desktop/repo_2
and repodata was created in /home/sefa/Desktop expectedly.
then when i run yum install package.rpm , it gives me:
Code:
file:///home/sefa/Desktop/repo_2/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/home/sefa/Desktop/repo_2/repodata/repomd.xml'
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: localrepo_2
it is searching repodata inside the folder which rpms hold.
in my config. file in /etc/repos.d
baseurl is /home/sefa/Desktop/repo_2.
i don't need this solution anymore.Maybe it would be useful to someone who encounters the same problem.
thank you.