Difference between revisions of "RPM Repository"
(5 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
Look for example at subdirs "centos" and "mirror". | Look for example at subdirs "centos" and "mirror". | ||
== Adding files to the repository == | == Adding files to the repository == | ||
− | Just put the file in the right directory (as user ndpfmgr) | + | 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:1009$ pwd | ||
− | /project/quattor/www/html/mirror/dag | + | /project/quattor/www/html/mirror/dag/el5_x86_64 |
stal:dag:1010$ scp templon@simeto:Downloads/perl-Compress-Raw\* . | stal:dag:1010$ scp templon@simeto:Downloads/perl-Compress-Raw\* . | ||
Warning: Permanently added 'simeto' (RSA) to the list of known hosts. | 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 | 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. | ||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
+ | [http://www.bronvanwelzijn.nl] |
Latest revision as of 14:52, 12 June 2010
This page is meant to provide information on how to execute common tasks on our RPM repository.
Location
The RPM repository is located on host stal.nikhef.nl, local directory
/project/quattor/www/html/
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 /project/quattor/www/html/mirror/dag/el5_x86_64 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.