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 […]
  • File Transfer I need to revise file transfer over TCP/IP. This article consists of links on […]
  • 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 […]
  • System V init scripts I really like Ubuntu's system V initialisation scripts and features. This is now based […]

Leave a Reply

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