Linux Yum Local Repository
Jump to navigation
Jump to search
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)
- Copy RPMS/ directory or whatever rpms you want to handle to a directory.
- Install createrepo with rpm
- Execute createrepo to create xml index of avaliable packages
- 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