Tuesday, October 6, 2009

Making A Repository for Our Packages

After successfully passing my koji build test, my next step was to create a repository to store my package so everyone else can download it and install it on their system.

So using the steps my professor Chris, told us : Steps to create repo


Creating a RPM package for your repo file

The way I created my repo file, was looking up an existing repo file in yum.repos.d and downloaded their source.

So on the scotland machine in CDOT, I used the livna repo as my template.

I used the following command to download the source code
yumdownloader --source livna

once downloaded issue the command
rpmdev-setuptree (if you don't already have the rpmbuild directory)

if so type in rpm -i "package name"

in the /rpmbuild/SOURCES directory edit and rename the .repo file so it contain the information for your repo: example

Place your Public GPG key in the /rpmbuild/SOURCES directory as well

After, Edit the Spec file, then use the command : Example

rpmbuild -ba "your new repopackage name"


After completion, do a rpmlint on your new rpm.

rpmlint "your new RPM package"

Upload it to a server and try it out.

Here are a few screen shots of my work



The following picture shows, the installation of my rpm repo with GUI



As You can see from the above picture, it notifies the user if he would like to add my GPG key, and install the irssi package from my repository to their system

This actually took me a long time to figure out if my GPG signature was added, so I jumped on IRC and asked my fellow users in the seneca channel, and my Prof. was luckily there and helped me solve that worry. I just needed to use

rpm -qip
"rpm file"


The above picture shows, the successful installation of my rpm package from the repository

Link To My RPM Repo : REPO

If you would like to try to install my package use the following command
yum install --disablerepo=fedora,updates irssi

0 comments:

Post a Comment