Making a Yum Repo

While trying to install Redland RDF on my Centos 5.3 VM, I decided to create a local yum repo and use yum. This page holds my notes.

There’s a couple of pages on the internet describing how to make a local repository for the full distro and this advice seems to work.

I am not sure how well this is working, when I finally got a fully resolved install, it was asking me for gpgcheck despite having this turned off on the repo definition file. Perhaps it kows of some of the packages from one of the installed and remote repos. Some behaviour is odd but it could be caused by my test case, the Redland RDF package.

How to

Firstly, you need the createrepo package, and decide where your repos will sit.

# yum install createrepo
# mkdir /var/local/repos.d/rdf
# cd $_
# for rpm in ${RPM_LIST}
> do; wget $rpm
> done
# createrepos .

I then created a file in the /etc/repos.d directory.

[librdf]
name=Redland RDF
baseurl=file:///var/local/repos.d/rdf
enabled=1
pgpcheck=0

NB There is only one word permitted between the square brackets, and it is three /s. yum now finds the repositories & rpms as expected.

Links

About yum & repos,

Related Posts

  • Centos 6.x I downloaded this from http://centos.mirroring.pulsant.co.uk/6.4/isos/x86_64/ The […]
  • Ubuntu 13.10 I am installing this on the Mac under Virtual Box. This snip is about Ubuntu. The […]
  • Centos 5.3 I installed this on the Mac. I also have Centos 5.9 on the HP Probook. Installing in […]
  • Using a package manager & repo I need to distribute a package, I need it to have ACLs in front of it. I thought I'd […]
  • Fedora 20 I need another Red Hat look alike and chose Fedora. My target is Virtual Box on Windows […]

One thought on “Making a Yum Repo

  1. Pingback: Centos 5.3 |

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.