Infrastructure Yum Repo SOP

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
m (1 revision(s))
(redirect page to new infra-docs)
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
= Infrastructure Repo - SOP =
+
{{header|infra}}
 +
{{shortcut|ISOP:IREPO}}
  
== Contact Information ==
 
Owner: Fedora Infrastructure Team
 
  
Contact: #fedora-admin
+
This SOP has moved to the fedora Infrastructure SOP git repo. Please see the current document at: http://infrastructure.fedoraproject.org/infra/docs/infra-yum.txt
  
Location: PHX http://infrastructure.fedoraproject.org/
+
For changes, questions or comments, please contact anyone in the Fedora Infrastructure team.  
  
Servers: puppet1 / Proxy Servers
 
  
Purpose: Provides infrastructure repo for custom Fedora Infrastructure Rebuilds
+
[[Category:Infrastructure SOPs]]
 
+
== Description ==
+
 
+
In some cases RPM's in Fedora need to be rebuilt for the Infrastructure team to suit our needs.  This repo is provided to the public (except for the RHEL RPMs).  Rebuilds go into this repo which are stored on the netapp and shared via the proxy servers.
+
 
+
== Building an RPM ==
+
 
+
Building an RPM for Infrastructure is significantly easier then building an RPM for Fedora.  Basically get your SRPM ready, have someone go over it and make sure it looks ok.  Then build it in mock.  Once you have your RPM ready... Test it!
+
 
+
{{ Template:message/note |  Remember to build it for every dist / arch you need to deploy it on.
+
}}
+
 
+
== Signing the RPM ==
+
 
+
=== Requesting Access ===
+
 
+
Infrastructure RPM's are signed by the Infrastructure key: http://infrastructure.fedoraproject.org/RPM-GPG-KEY-INFRASTRUCTURE Access to this key is restricted.  If you feel you need it email MikeMcGrath with a request for access (if Mike isn't around some of the other Infrastructure people also have access like ToshioKuratomi.  You'll only need to ask for the key once.  It has a password which will be given to you as well.
+
 
+
=== Signing the RPM ===
+
 
+
Once your key has been set up, you can sign the RPMs with:
+
 
+
rpm --resign your-package-1.1.rpm
+
 
+
== Re-creating the repo ==
+
 
+
All of the repositories are located at:
+
 
+
<pre>
+
puppet1:/mnt/fedora/app/fi-repo/rhel
+
</pre>
+
 
+
Simply copy your rpm to the proper dist/arch/  then run create repo from that directory.
+
 
+
{{ Template:message/note |  Don't forget to sign and deploy your SRPM!
+
}}
+
 
+
This is an example of copying and creating a repo for myPack-1.0.noarch.rpm
+
 
+
<pre>
+
cd /mnt/fedora/app/fi-repo/el/5/
+
cp ~/rpms/RPMS/myPack-1.0.noarch.rpm ./i386/
+
createrepo ./
+
</pre>
+
 
+
Easy as that.
+

Latest revision as of 18:20, 19 December 2011

Infrastructure InfrastructureTeamN1.png
Shortcut:
ISOP:IREPO


This SOP has moved to the fedora Infrastructure SOP git repo. Please see the current document at: http://infrastructure.fedoraproject.org/infra/docs/infra-yum.txt

For changes, questions or comments, please contact anyone in the Fedora Infrastructure team.