openSUSE: Adding repositories | Ubunlog

Add repositories in openSUSE it’s pretty simple, either using Zypper through the console or through the package manager of YaST. This post presents a small guide on how to do this using Zypper, a fairly powerful and easy-to-use tool that sometimes falls into disuse due to the facilities provided by YaST.

The first is to log in as an administrator with the command:

su -

Then just enter the relevant order, the basis is as follows:

zypper ar -f [dirección-del-repositorio] [nombre-del-repositorio]

on ar = addrepo i -f enable automatic updating of this repository. If we wish we can ignore the option -f, Especially if we manually refresh the information in our repositories.

Suppose for example that we want to add a repository for KDE 4.9 to the address ‘’ and we want the name to be ‘kde49’. The command to add it would then be:

zypper ar -f kde49

A practical example can be found in the entry ‘Install KDE SC 4.9.x on openSUSE 12.2’.

We can access in addition to other options by entering in ours terminal the order

zypper ar --help


  • -r: Reads the URI address from a .repo file.
  • -t: Repository type (YaST2, rpm-md, plaindir).
  • -d: Add repository as disabled.
  • -c: Check the URI.
  • -C: It does not check the URI, it is checked later during the update.
  • -n: Specifies a descriptive name for the repository.
  • -k: Enable caching of RPM files.
  • -K: Disables caching of RPM files.
  • -g: Enable GPG signature verification for this repository.
  • -G: Disable GPG signature verification for this repository.
  • -f: Enable automatic update.

Once we have finished adding the repositories of our interest we leave the administrator session with the order


More information – OpenSUSE readable sources 12.2

Related Posts

Next Post

Leave a Reply

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

You might also like

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.