Create a Local Repository

Some one could help how to create a local repository for Open Suse 13.2. The server has a minimal instalation from Open Suse 13.2.

Hi
You can just pop all your rpm’s in a local directory and then add as a ‘plain rpm’ repository.

Or if it’s an iso image that can be added locally as a repository as well.

Or install createrepo and then add rpms in a normal directory structure, eg’


Local_rpms> ls -la
total 4
drwxr-xr-x 6 user users   61 Oct  9 15:50 .
drwxr-xr-x 6 user users   87 Sep  1 09:22 ..
drwxr-xr-x 2 user users  172 Sep 24 10:21 noarch
drwxr-xr-x 2 user users   40 Oct  9 15:50 src
drwxr-xr-x 2 user users 4096 Oct  9 15:50 x86_64

Then run createrepo;


 createrepo .
Spawning worker 0 with 5 pkgs
Spawning worker 1 with 5 pkgs
Spawning worker 2 with 5 pkgs
Spawning worker 3 with 5 pkgs
Workers Finished
Saving Primary metadata
Saving file lists metadata
Saving other metadata

Local_rpms> ls -la
total 4
drwxr-xr-x 6 user users   61 Oct 29 11:53 .
drwxr-xr-x 6 user users   87 Sep  1 09:22 ..
drwxr-xr-x 2 user users  172 Sep 24 10:21 noarch
drwxr-xr-x 2 user users  285 Oct 29 11:53 repodata
drwxr-xr-x 2 user users   40 Oct  9 15:50 src
drwxr-xr-x 2 user users 4096 Oct  9 15:50 x86_64

Now add the directory as (Local_rpms) as a repository…

Adding the actual repository can be done via zypper ar, or via YaST software repositories.