RPM Repository

From PDP/Grid Wiki
Jump to navigationJump to search

This page is meant to provide information on how to execute common tasks on our RPM repository.


The RPM repository is located on host stal.nikhef.nl, local directory


Look for example at subdirs "centos" and "mirror".

Adding files to the repository

Just put the file in the right directory (as user ndpfmgr) (but see also below). An example. For this example, the RPM had been downloaded from the DAG repository on another machine, hence copied in via scp.

stal:dag:1009$ pwd
stal:dag:1010$ scp templon@simeto:Downloads/perl-Compress-Raw\* . 
Warning: Permanently added 'simeto' (RSA) to the list of known hosts.
perl-Compress-Raw-Bzip2-2.023-1.el5.rf.x86_64.rpm                      100%  110KB 110.3KB/s   00:00

Note: be careful that you don't forget to put it in the correct architecture/OS directory (here the el5_x86_64 suffix).

Using your new RPMs in quattor

You will need to have this RPM listed in some RPM list included by your quattor template. We assume this has been done. This is not enough; the RPM needs to be "provided" by a repository. You have of course, by following the above steps, done so, but quattor does not know this yet.

For that to happen, you have to do two things.

1. you need to wait at most 5 minutes, for the RPM(s) you put in the stal repository, to be automagically replicated to the "stalkaars" servers.

2. you need to run makexprof (on whatever machine you are doing your compiling on) with the -u option, which updates the repository templates.