Cyrille Repository

Test repository for Blaggers

Hi,
I try to do a blag repository to hosts some Blaggers RPMs such as sylpheed or icecat.
With this repository, we can use YUM to manage this packages better than rpm (better to manage the updates, for example).
You can find it here :
http://cbiot.fr/blag/

The how-to install : http://cbiot.fr/blag/how-to.html

The Repoview : http://cbiot.fr/blag/repoview/

Installation

If you want to use this repository, just download :

 wget http://cbiot.fr/blag/cyrilleBlag-release-1-1.noarch.rpm

And install it…

 rpm -ivh cyrilleBlag-release-1-1.noarch.rpm

In the hope that it works…

This rpm adds the repository into /etc/yum.repos.d/ and adds the GPG key of this repository in /etc/pki/

 

Page on the BLAG WIKI
blag.wiki.aktivix.org/CyrilleBlagRepo

 
 

This is really huge!

I’d like to understand how should be a yum repo in order to test yum updates for linux-libre kernel too.

Alexandre Oliva has challenged me to do it, but i have not really the necessary knowledge to try it without fear of break something.

Maybe you could share a mini HowTo of the minimal structure of a yum file and compatible repo?

In solidarity
Jesús Franco

 
 

First thx !

Don’t really understand ;-) Can you precise me what you want to do :
- use the repository of LINUX LIBRE (http://www.fsfla.org/download/linux-libre/freed-ora/ ) ?
- create your own repository ?

First case : blag.wiki.aktivix.org/Repo or in French here blag.wiki.aktivix.org/Repo/fr

Second case : you put your rpms in a specific dir (don’t forget to sign them ($ rpmsign —addsign YOUKEY). Next your create the necessary file with ’’’createrepo’’’. Then your local repository is create. You must also create a RPM in order than the other users installed it automatically. So you need to create a specific ’’’spec’’’ file and build it with ’’’rpmbuilder’’’ : an RPM is created (don’t forget to sign it). Upload all and enjoy. I did a little how-to : blag.wiki.aktivix.org/CyrilleBlagRepo

I hope that can help you. Else you can mail me or continue this thread, I ‘d try to help you if I’m able to do it!

Cheer
Cyrille

 
   

To create your repo (local)

Copy your rpms in a specific DIR with SUBDIR x86_64, i386 and noarch.

 /usr/bin/createrepo -d ~/DIR_WITH_MY-RPMS
 /usr/bin/repoview -q ~/DIR_WITH_MY-RPMS

For the RPM who automatically install your repo

1. Create a GPG key in you dir : /$home/rpmbuilder/SOURCES/RPM-GPG-KEY-NOM

2. Create a file like it in /$home/rpmbuilder/SOURCES
Name it NOM.repo

 [NOM]
 name=NOM
 baseurl=ADRESSE_DE_TON_SITE/$basearch/
 failovermethod=priority
 enabled=1
 gpgcheck=0
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NOM

3. Create a spec file like it in dans /$home/rpmbuilder/SPECS
Name it NOM-release.spec

 Name            : NOM-release
 Version         : 1
 Release         : 1
 Epoch           : 0
 Summary         : Repository
 Packager        : TON NOM <ton mail>
 Vendor          : TON ENTITE
 Group           : System Environment/Base
 License         : GPL
 URL             : TON URL
 Source0         : RPM-GPG-KEY-NOM
 Source1         : NOM.repo
 BuildRoot       : %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch       : noarch
   
 
 %description
 Contact: toto [at] tutu [dot] fr 
 
 %prep
 %setup -c -T 
 
 %build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 # common
 install -Dpm 644 %{SOURCE0} \
    $RPM_BUILD_ROOT%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-NOM

 # yum
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
 install -pm 644 %{SOURCE1} \
     $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
 %{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-NOM
 %config %{_sysconfdir}/yum.repos.d/*
  
 

4. Built yoyr RPM :

 rpmbuild -bb NOM-release.spec

Upload

Upload you repo and the rpm to install it automatically.