(some other directory structure, but without the sqlite files being created)
# createrepo -o /rpms/12/Everything/i386/os/ /rpms/12/Everything/i386/os/Packages
Recreate using the “-d” switch to include sqlite files, and “-u” with the path to the RPMs if they’re not in the same directory as the repodata directory
# createrepo -d \
-u /rpms/12/Everything/i386/os/Packages/ \
-o /rpms/12/Everything/i386/os/ \
/rpms/12/Everything/i386/os/Packages
Run it with the path to your repository as your webserver sees it. If your structure is somewhere outside of the web root, just link to it and use the linked path. Easy mode. If you don’t give it an output path, you’ll find the repoview directory under the repository directory. In my case Packages, repoview, and repodata are all at the same level in os.
# repoview /var/www/lighttpd/rpms/12/Everything/i386/os
Examining repository…done
Opening primary database…done
Opening changelogs database…done
Copying layout…done
Examining state db…done
Collecting group information…done
Collecting letters…done
Writing package stuff.html
Writing package things.html
Writing package junk.html
Writing group letter_x.group.html
Writing group letter_y.group.html
Writing group letter_z.group.html
Collecting latest packages…done
Writing index.html…done