LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   createrepo error I think (https://www.linuxquestions.org/questions/linux-newbie-8/createrepo-error-i-think-837830/)

fcfury 10-13-2010 11:29 AM

createrepo error I think
 
I am using RHEL5 and I did a createrepo -v --update /var/www/html/yum/base/5Server/x86_64/rhel-x86_64-server-5/getPackage/ and the output was

Scanning old repo data
Indexed 10031 base nodes
Killed

Now is that a error??? I didn't press Ctrl-C or anything like that, it just finished that way. I have a local yum repository and I use reposync to sync up my local repository with the Red Hat network. Everytime I pull down the updates from Red Hat I used createrepo with no options but wanted to try the --update to see how much time it would save. Anyone have any ideas why it is it was "Killed"

rweaver 10-15-2010 04:09 PM

Createrepo --update (if memory serves) doesn't update the files in the repo, but the matadata describing the repo... you would do an --update when you change a file in the repo to update the metadata so that clients know to download the update. Anytime I've setup repo's I typically used rsync for the update of the actual data (typically i've done fedora, not rhel but the same thing should apply.)

JohnSuykerbuyk 11-10-2010 01:09 PM

I'm having the same problem on SuSE 11.2
 
It runs for hours, eventually ending with createrepo was killed message.

I'm using createrepo version 0.4.9 on OpenSuSE x64 version 11.2

I noticed a difference between update and recreate behaviors. If I delete all the old repo meta data, and attempt to recreate it, createrepo dies somewhere around the 5,000 rpm count mark. From then on, if I do update instead of recreate, it keeps getting further along, until it reaches a rpm file count of around 24,000 that it never gets passed. As an FYI - there are about 36,000 total rpms of various architectures in the repository, with up to 10 versions of some of them.

Have no clue how to "fix" this. I am attempting to clean out all earlier versions of RPMS's saving only the most recent in the hopes that reducing the number of RPMS will help createrepo succeed.

- John "S"


All times are GMT -5. The time now is 06:53 AM.