# Yum repositories: How to change default metadata generation default time

**URL:** <https://community.sonatype.com/t/yum-repositories-how-to-change-default-metadata-generation-default-time/5520>\
**Category:** Sonatype Nexus Repository\
**Tags:** help\
**Created:** [December 5, 2020, 12:31pm UTC](https://community.sonatype.com/t/yum-repositories-how-to-change-default-metadata-generation-default-time/5520 "2020-12-05T12:31:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@samuel](https://community.sonatype.com/u/samuel)\
**Post date:** [December 5, 2020, 12:31pm UTC](https://community.sonatype.com/t/yum-repositories-how-to-change-default-metadata-generation-default-time/5520/1 "2020-12-05T12:31:50Z")

</div>

Reading the documentation for nexus oss 3 I found the following:

> When an RPM is uploaded, the Yum metadata will be generated after the configured value (default 60 seconds).

[https://help.sonatype.com/repomanager3/formats/yum-repositories#YumRepositories-DeployingPackagestoYumHostedRepositories](https://help.sonatype.com/repomanager3/formats/yum-repositories#YumRepositories-DeployingPackagestoYumHostedRepositories)

How can that default value of 60s be changed?

Thanks

---

<div class="post-metadata">

**Author:** ![rseddon](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/rseddon/32/341_2.png) [@rseddon](https://community.sonatype.com/u/rseddon)\
**Post date:** [December 7, 2020, 2:53pm UTC](https://community.sonatype.com/t/yum-repositories-how-to-change-default-metadata-generation-default-time/5520/2 "2020-12-07T14:53:54Z")

</div>

I’d like to take a step back here… why are you wanting that to be changed? If you’re having a problem with slow metadata generation upgrade to the new 3.29.0 release, we’ve fixed a few significant issues in yum metadata generation in that release.

Rich

---

<div class="post-metadata">

**Author:** ![samuel](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@samuel](https://community.sonatype.com/u/samuel)\
**Post date:** [December 7, 2020, 3:17pm UTC](https://community.sonatype.com/t/yum-repositories-how-to-change-default-metadata-generation-default-time/5520/3 "2020-12-07T15:17:23Z")

</div>

Hi Rich,  
Thanks for your feedback.  
Where can I read from the new improvements about metadata generation?  
I’m also interested to know more details about the metadata generation operation and how it works (specially the related source code).  
I had some problems when updating packages to hosted repository and I need more information so I can debug it for new issues.  
The issue is the new packages not appearing after uploading even cleaning the client cache when the new packages are already listed in Nexus manager.  
I also would like to find a way to trigger a manual rebuild (script API) of metadata without depending on yum metadata repair task. This would be useful for CI integration.  
Thanks

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [December 7, 2020, 4:20pm UTC](https://community.sonatype.com/t/yum-repositories-how-to-change-default-metadata-generation-default-time/5520/4 "2020-12-07T16:20:01Z")

</div>

The [release notes](https://help.sonatype.com/repomanager3/release-notes) include some information about bug fixes that could prevent packages from appearing in metadata.

There is a delay for rebuild because the operation can be expensive so it is not recommended to change the setting.

---

<div class="post-metadata">

**Author:** ![samuel](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@samuel](https://community.sonatype.com/u/samuel)\
**Post date:** [December 7, 2020, 7:43pm UTC](https://community.sonatype.com/t/yum-repositories-how-to-change-default-metadata-generation-default-time/5520/5 "2020-12-07T19:43:08Z")

</div>

Hi Matthew,  
Thank you for your feedback.  
Is there any event for metadata update, so in a CI pipeline could be possible to receive the notification about the package availability?  
Thanks
