Difference between revisions of "Linux Yum Local Repository"

From Mesopoly 3.0
Jump to navigation Jump to search
Line 9: Line 9:
 
<br>If we look at [http://www.die.net/doc/linux/man/man5/yum.conf.5.html yum.conf man page] we would see that 'url' syntax suggested for local repository directory is 'file://'. It will not work. Should be 'file:///'
 
<br>If we look at [http://www.die.net/doc/linux/man/man5/yum.conf.5.html yum.conf man page] we would see that 'url' syntax suggested for local repository directory is 'file://'. It will not work. Should be 'file:///'
  
#Try it out
+
*Try it out
  
 
[[Category:Technical]]
 
[[Category:Technical]]

Revision as of 08:59, 16 February 2006

Sometimes you would start installing programs using RPM only to conclude that you need to build local repository, because dependancies are handled beter to start with.

Here is how I do it. (Fedora 3.0)

  1. Copy RPMS/ directory or whatever rpms you want to handle to a directory.
  2. Install createrepo with rpm
  3. Execute createrepo to create xml index of avaliable packages
  4. Edit your yum.conf ie create yum.repos.d entry


If we look at yum.conf man page we would see that 'url' syntax suggested for local repository directory is 'file://'. It will not work. Should be 'file:///'

  • Try it out