aneeskA | 26 May 2008 09:03
Picon
Gravatar

Re: trouble with 'createrepo'

Hi All,

   A small update from me. I changed the baseurl to point to the directory where my RPMs reside. when run 'yum localinstall' an error pos up :- 'Cannot open/read repomd.xml file for repository" Any ideas ?

Thanks and regards

-- anees

On Mon, May 26, 2008 at 12:17 PM, aneeskA <aneeska2k5 <at> gmail.com> wrote:
Hi All,

    I have 10 rpms with me which I want to distribute in a CD. They are dependent on each other. I dont want the user to list out all the rpms one by one and install or say 'rpm -i *'. When i give one rpm to install he will say that some thing else is not installed and exits. But yum looks at the dependencies and installs them at one go. So if i can do a localinstall on one rpm it will look up its dependencies (which is present n the same directory) and install all. For that i created repo data of the rpms using 'createrepo' program. but its not working. Yum with and without the repo data lists the dependencies and says Error:Missing Dependency and exits.

   What am I missing ?

Thanks and regards

-- anees

_______________________________________________
Rpm-metadata mailing list
Rpm-metadata <at> lists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-metadata
aneeskA | 26 May 2008 09:40
Picon
Gravatar

Re: trouble with 'createrepo'

OK. I think i will answer my own question.

In order to localinstall a number of RPMs which are present inside a local directory do this :-

create a .repo file in /etc/yum.repos.d/

file format :-

[tag]
name=name
baseurl=path

Thanks and regards
-- anees

On Mon, May 26, 2008 at 12:33 PM, aneeskA <aneeska2k5 <at> gmail.com> wrote:
Hi All,

   A small update from me. I changed the baseurl to point to the directory where my RPMs reside. when run 'yum localinstall' an error pos up :- 'Cannot open/read repomd.xml file for repository" Any ideas ?

Thanks and regards

-- anees


On Mon, May 26, 2008 at 12:17 PM, aneeskA <aneeska2k5 <at> gmail.com> wrote:
Hi All,

    I have 10 rpms with me which I want to distribute in a CD. They are dependent on each other. I dont want the user to list out all the rpms one by one and install or say 'rpm -i *'. When i give one rpm to install he will say that some thing else is not installed and exits. But yum looks at the dependencies and installs them at one go. So if i can do a localinstall on one rpm it will look up its dependencies (which is present n the same directory) and install all. For that i created repo data of the rpms using 'createrepo' program. but its not working. Yum with and without the repo data lists the dependencies and says Error:Missing Dependency and exits.

   What am I missing ?

Thanks and regards

-- anees


_______________________________________________
Rpm-metadata mailing list
Rpm-metadata <at> lists.dulug.duke.edu
https://lists.dulug.duke.edu/mailman/listinfo/rpm-metadata

Gmane