SCIENTIFIC-LINUX-USERS Archives

July 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Misc Things <[log in to unmask]>
Reply To:
Misc Things <[log in to unmask]>
Date:
Thu, 7 Jul 2011 09:42:19 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
a quick search didn't reveal anything meaningful, so i suspect it's a
very simple question, yet, i seemed to unable to resolve it.

Q: how to update a local repository ?
step-by-step:
0. createrepo v 0.9.8, SL6 with the latest and greatest patches.
Behaviour is consistent between 686 and x64.
1. create directory /mnt/localrepo as a regular user.
2. add 1 rpm ( say example.rpm) ( regular user)
3. create local repository with "create repo" command ( as root).
4. add local repository to the yum.repos and enable it
5.  yum search example
6. search reveals "example.rpm" in the local repo
7. copy big_program.rpm to the directory /mnt/localrepo ( regular user)
8. run " createrepo /mnt/localrepo" - i can observe that it goes thru
the packages, but doesn't pick up a new one.
8a. run " createrepo --update /mnt/localrepo" - does the same thing
9. yum search big_program.rpm - reveals nothing.

the only way i got this to work is by removing the repodata folder and
starting from scratch ( step 3 ). This is obviously not right.

Please advise.
Andrew

ATOM RSS1 RSS2