# Own/custom repo - folder layout

**URL:** https://forums.rockylinux.org/t/own-custom-repo-folder-layout/8718
**Category:** Rocky Linux Help & Support
**Created:** [January 29, 2023, 8:56am UTC](https://forums.rockylinux.org/t/own-custom-repo-folder-layout/8718 "2023-01-29T08:56:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![efdevse](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/efdevse/32/2616_2.png) [@efdevse](https://forums.rockylinux.org/u/efdevse)
#### Post date: [January 29, 2023, 8:56am UTC](https://forums.rockylinux.org/t/own-custom-repo-folder-layout/8718/1 "2023-01-29T08:56:54Z")

</div>

Thought I should setup a local repo for the rpms I’ve made - to make it easier to manage, and easier for my nephews to use later on their side.

So, I was thinking something like:

```auto
/srv/repo/FooBar/ # vhost: http://foobar.lan/
            index.html # w. basic landing/info page
            browse/ # browsable/indexlisting
                RPM-GPG-KEY-foobar
                el8/
                el9/
                rpmbuild/ # archives of my rpmbuilds

```

&nbsp;

But, then the content of each el8/9. Not really sure how I want it, or what’s to prefer.

```auto
                   # same as what rpmbuild creates
                   RPMS/
                        noarch/
                            bar-1.0.0-1.el8.noarch.rpm
                        x86_64/
                            foo-2.0.0-1.el8.x86_64.rpm
                    SRPMS
                        bar-1.0.0-1.el8.noarch.src.rpm
                        foo-2.0.0-1.el8.x86_64.src.rpm

                    # - or -
                    noarch/
                        bar-1.0.0-1.el8.noarch.rpm
                    x86_64/
                        foo-2.0.0-1.el8.x86_64.rpm
                    SRPMS
                        bar-1.0.0-1.el8.noarch.src.rpm
                        foo-2.0.0-1.el8.x86_64.src.rpm

                    # - or -
                    Packages
                        bar-1.0.0-1.el8.noarch.rpm
                        foo-2.0.0-1.el8.x86_64.rpm
                    SRPMS
                        bar-1.0.0-1.el8.noarch.src.rpm
                        foo-2.0.0-1.el8.x86_64.src.rpm

```

Is there a “standard” way, or is it just to make one after your own taste? Or any other suggestions?

· Eric

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [January 29, 2023, 11:12am UTC](https://forums.rockylinux.org/t/own-custom-repo-folder-layout/8718/2 "2023-01-29T11:12:44Z")

</div>

I’ve seen directories `Packages` and `repodata` on many repositories.  
Rocky has has convenient\* subdirectories in Packages. See [Index of /pub/rocky/9/BaseOS/x86\_64/os/Packages/](https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os/Packages/)

\*Convenient for browsing, more laborious for populating.

---

<div class="post-metadata">

### Author: ![efdevse](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/efdevse/32/2616_2.png) [@efdevse](https://forums.rockylinux.org/u/efdevse)
#### Post date: [January 29, 2023, 12:12pm UTC](https://forums.rockylinux.org/t/own-custom-repo-folder-layout/8718/3 "2023-01-29T12:12:28Z")

</div>

Thanks! Yes, alphabetic’ish folders are great, but I don’t have that many ones. It’ll maybe be a total of 10-20 rpms in the end. Think I’ve done most of the ones I need, and then there’s a few more.

But, going with “Packages/” and then drop all there is ok. Just thinking if I should divide the “x86\_64” and “noarch” ones. One program created 2 different rpms where one was a noarch. Thought maybe it could easier when browsing to se them together (as in recognized by names), but it’s maybe more of a proper way to folder them by arch.

_/\* There will only be rpms created by/for x86\_64, but some of them come out as noarch. \*/_

* * *

The “repodata“, etc I assume will go into the el8/ folder, and el9/. Ie. where ever I’ll run `createrepo`.

---

<div class="post-metadata">

### Author: ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)
#### Post date: [August 25, 2023, 3:26am UTC](https://forums.rockylinux.org/t/own-custom-repo-folder-layout/8718/4 "2023-08-25T03:26:45Z")

</div>


