Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:  
{{Level|Developer}}
 
{{Level|Developer}}
   −
==Create your repository==
+
==Create your repository of RPM==
 
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 28: Line 28:  
===Create repository metadata===
 
===Create repository metadata===
   −
you need to install a package named 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
    
  yum install createrepo
 
  yum install createrepo
    
each time you upload a package you have to launch the createrepo command, you can do it in a cron or else do it manually.
 
each time you upload a package you have to launch the createrepo command, you can do it in a cron or else do it manually.
  createrepo -d /var/www/vhosts/myrepo.xxx/mirror/smeserver/5
+
  createrepo -dvp /var/www/vhosts/myrepo.xxx/mirror/smeserver/5
  createrepo -d /var/www/vhosts/myrepo.xxx/mirror/smeserver/6
+
  createrepo -dvp /var/www/vhosts/myrepo.xxx/mirror/smeserver/6
    
you can do something like that in your crontab
 
you can do something like that in your crontab
Line 40: Line 40:  
  crontab -e
 
  crontab -e
   −
  */30    *      *      *      *      createrepo -d /var/www/vhosts/myrepo.xxx/mirror/smeserver/5
+
  */30    *      *      *      *      createrepo -dvp /var/www/vhosts/myrepo.xxx/mirror/smeserver/5
  */31    *      *      *      *      createrepo -d /var/www/vhosts/myrepo.xxx/mirror/smeserver/6
+
  */31    *      *      *      *      createrepo -dvp /var/www/vhosts/myrepo.xxx/mirror/smeserver/6
    
===Create Repoview===
 
===Create Repoview===

Navigation menu