Sender: |
|
Date: |
Thu, 7 Jul 2011 08:48:26 -0500 |
Reply-To: |
|
Content-Transfer-Encoding: |
7bit |
Subject: |
|
From: |
|
Content-Type: |
text/plain; charset=ISO-8859-1; format=flowed |
In-Reply-To: |
|
MIME-Version: |
1.0 |
Comments: |
|
Parts/Attachments: |
|
|
On 07/07/2011 08:42 AM, Misc Things wrote:
> 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
You need step 8b
8b run "yum clean all"
This clears out yum's cache. (Yum caches the repository information for
a set period of time.)
There is a way to clear out just your local repository cache, but the
clear all command is easier to document. :)
Troy
--
__________________________________________________
Troy Dawson [log in to unmask] (630)840-6468
Fermilab ComputingDivision/SCF/FEF/SLSMS Group
__________________________________________________
|
|
|