Create fancy html pages for browsing YUM Repositories with repoview

You probably created your repository something like this.

(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 your repository

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

Now run repoview

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

Posted by admica   @   3 December 2009

Related Posts

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Name

Email

Website

Previous Post
« Modern Warfare 2 Semtex-Javelin kamikaze chain reaction glitch
Next Post
Create your own Fedora 12 custom distribution on DVD »
Powered by Wordpress   |   Lunated designed by ZenVerse