User Tools

Site Tools


create_your_repository

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
create_your_repository [2015/05/03 20:22]
stephdl [Create your repository]
create_your_repository [2019/06/05 19:48] (current)
Line 1: Line 1:
-=====Create your repository=====+======Create your repository======
 The purpose of this HowTo is to make your own repository to share RPM that your are developing for our marvellous project. I use a CentOS server to host my repository mirror.de-labrusse.fr<br /> The purpose of this HowTo is to make your own repository to share RPM that your are developing for our marvellous project. I use a CentOS server to host my repository mirror.de-labrusse.fr<br />
  
Line 24: Line 24:
 Of course you must respect the architecture of the rpm you have builded, you need to upload noarch.rpm to noarch, src.rpm to SRPMS, i386 to i386 and x86_64.rpm to x86_64 Of course you must respect the architecture of the rpm you have builded, you need to upload noarch.rpm to noarch, src.rpm to SRPMS, i386 to i386 and x86_64.rpm to x86_64
  
-===Create repository metadata===+=====Create repository metadata=====
  
 you need to install a package named createrepo. See [http://docs.fedoraproject.org/en-US/Fedora/14/html/Software_Management_Guide/Gesti%C3%B3n_avanzada_de_repositorios_yum.html Here] for more documentation on createrepo you need to install a package named createrepo. See [http://docs.fedoraproject.org/en-US/Fedora/14/html/Software_Management_Guide/Gesti%C3%B3n_avanzada_de_repositorios_yum.html Here] for more documentation on createrepo
Line 41: Line 41:
    */31    *                         createrepo -dvp  /var/www/vhosts/myrepo.xxx/mirror/smeserver/6    */31    *                         createrepo -dvp  /var/www/vhosts/myrepo.xxx/mirror/smeserver/6
  
-===Create Repoview===+=====Create Repoview=====
  
 Additionally you can make a nice view for you repository, it is not a mandatory Additionally you can make a nice view for you repository, it is not a mandatory
Line 53: Line 53:
   */36    *                         repoview  /var/www/vhosts/myrepo.xxx/mirror/smeserver/6   */36    *                         repoview  /var/www/vhosts/myrepo.xxx/mirror/smeserver/6
  
 +=====Clean Your repository=====
  
-===Sign your RPM===+first we need to install yum-utils, take a look to the [[http://linux.die.net/man/1/yum-utils|documentation]], it is really interesting 
 +  yum install yum-utils 
 + 
 +Now we will use repomanage, this command is only made to list either old or new package, matter of choice. 
 + 
 +  repomanage --keep=2 --old /your/path/to/folder 
 +or 
 +  repomanage --keep=1 --new /your/path/to/folder 
 + 
 +here I want to list and keep only two versions of each rpm. Put this command in a cron job  
 + 
 +  rm $(repomanage --keep=2 --old /your/path/to/folder) -rf 
 + 
 +=====Sign your RPM=====
 Now we can sign package before to upload them, it is an additional way to increase security for people who will download your rpm. You can see this wiki page [[Sign_your_RPM]] Now we can sign package before to upload them, it is an additional way to increase security for people who will download your rpm. You can see this wiki page [[Sign_your_RPM]]
  
-===Declare your repository on the client side===+=====Declare your repository on the client side=====
  
 This is how you need to allow your repository on the client side, on each SME Server which wants to reach your repository. This is how you need to allow your repository on the client side, on each SME Server which wants to reach your repository.
create_your_repository.1430684576.txt.gz · Last modified: 2019/06/05 19:48 (external edit)