TWiki> DICE Web>FinalProjectReport214 (revision 2)EditAttach
Investigated various perl modules for yum (such as YUM-RepoQuery) to see if these would be of any use, and also looked at "repoquery" - but eventually decided that it was easier to query the primary.sqlite databases directly via SQL commands, than to use the yum libraries via repoquery.

Set up VM as test server, and wrote perl scripts to do the work of getting search parameters, looking through repositories and generating web page responses.

Created configuration file to allow specification of supported OSes and default OS, which abstracts OS-dependencies from main scripts.

Wrote cron scripts to update local, searchable, copies of repositories (as required by configuration file) and to generate list of currently-supported software groups (extracted from local repositories). Local repository namespace is normalised to make searching easier.

Packaged files:

  • /disk/home/pkgsearchd/pkgsearch-os.cfg (main configuration file)
  • /etc/cron.d/update-groups.pl (cron job to update software groups list)
  • /etc/cron.d/update-repos.sh (cron job to create local repository structure)
  • /var/www/cgi-bin/pkginfo (CGI to display package details)
  • /var/www/cgi-bin/pkgsearch (CGI to search repositories and display matches)
  • /var/www/html/pkgsearch-index.html (redirect page)
  • /var/www/html/pkgsearch.shtml (start page)

Created files:

  • /disk/home/buckets (repository list)
  • /disk/home/repos (local repository structure)

-- RogerBurroughes - 21 Mar 2013

Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 25 Mar 2013 - 12:40:20 - RogerBurroughes
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
This Wiki uses Cookies