Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
==Create your repository==
+
{{Level|Developer}}
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
      +
==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 />
 +
 +
In a first time you have to parameter a web area where you can upload packages, you can do it by many ways, it is not the purpose of this howTo.
 
===Repository Architecture===
 
===Repository Architecture===
   Line 16: Line 19:     
===Upload RPM to Web Folder===
 
===Upload RPM to Web Folder===
In a first time you have to parameter a web area where you can upload packages, you can do it by many ways, it is not the purpose of this howTo. The manner to ypload packages to your repository could be done by many ways,  "rsync, scp, ftp..." you have to find your manner.
+
The manner to upload packages to your repository could be done by many ways,  "rsync, scp, ftp..." you have to find your manner.
 
After that you could see packages in browsing your web area, if it is not the case, you may see if the parameter below is included in your httpd VirtualHost.
 
After that you could see packages in browsing your web area, if it is not the case, you may see if the parameter below is included in your httpd VirtualHost.
   Line 22: Line 25:     
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
+
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 36: 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===
Line 56: Line 60:  
===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.
+
This is how you need to allow your repository on the client side, on each SME Server which wants to reach your repository.
   −
{{Warning box|msg=Copy the configuration setting to your server as is, do not modify anything as that might harm your installation. To use it to install package enable it using the option '''--enablerepo=stephdl''' at the SME Server shell.}}
+
{{Warning box|msg=Copy the configuration setting to your server as is, do not modify anything as that might harm your installation. To use it to install package enable it using the option '''--enablerepo=FOO''' at the SME Server shell.}}
 
Below you find the installation command for the {{PAGENAME}} repository which can be entered on the SME Server shell.
 
Below you find the installation command for the {{PAGENAME}} repository which can be entered on the SME Server shell.
 
</noinclude>
 
</noinclude>
Line 71: Line 75:  
After adding it to the database updating the configuration file is required:
 
After adding it to the database updating the configuration file is required:
 
  signal-event yum-modify
 
  signal-event yum-modify
 +
 +
 +
[[Category:SME Server Development Framework]]
 +
[[Category:Development Tools]]
 +
[[Category:SME9-Development]]

Navigation menu