Difference between revisions of "Creating an Eprints RPM"

From EPrints Documentation
Jump to: navigation, search
 
Line 1: Line 1:
 
{{Installation}}
 
{{Installation}}
 +
 +
Creating the Eprints RPM requires root, because the process involves creating the eprints user and group.
  
 
Install rpm-build (depending on your package manager):
 
Install rpm-build (depending on your package manager):
Line 12: Line 14:
 
  rpmbuild -ta eprints-x.x.x.tar.gz
 
  rpmbuild -ta eprints-x.x.x.tar.gz
  
The RPMs should be written to /usr/src/redhat/RPMS/ and /usr/src/redhat/SRPMS/
+
The RPMs should be written to /usr/src/redhat/RPMS/ and /usr/src/redhat/SRPMS/.
  
 
==Building a Yum repository==
 
==Building a Yum repository==

Revision as of 17:20, 19 February 2007

Download an appropriate EPrints Release


Creating the Eprints RPM requires root, because the process involves creating the eprints user and group.

Install rpm-build (depending on your package manager):

up2date rpm-build
yum install -y rpm-build

Download the Eprints source file (eprints-x.x.x.tar.gz, version 3.0.1 and above).

Create the RPM and source RPMs (will error if there are any missing dependencies):

rpmbuild -ta eprints-x.x.x.tar.gz

The RPMs should be written to /usr/src/redhat/RPMS/ and /usr/src/redhat/SRPMS/.

Building a Yum repository

Install createrepo from http://linux.duke.edu/projects/metadata/.

Create a directory structure containing RPMS and SRPMS directories:

.
./RPMS
./SRPMS

To create the repository metadata execute:

createrepo .

This should create a repodata directory.

Building an up2date repository

up2date uses an 'obsolete' repository structure and requires yum-arch (isn't in Yum version 3):

yum-arch .