Standards/RepoInfo

From openSUSE

.repo files are used by some package managers to allow one click adding of repositories.

The standard consist in a INI-like file with the following keys:

[ruby]
name=Ruby is an Interpreted Object-Oriented Scripting Language (openSUSE_10.2)
type=rpm-md
baseurl=http://software.opensuse.org/download/ruby/openSUSE_10.2/
gpgcheck=1
gpgkey=http://software.opensuse.org/openSUSE-Build-Service.asc
enabled=1

The section between [] is meant to be the unique id of the repository locally, also known as alias.

'name' is a more descriptive text used in the UI.

libzypp Extensions

keeppackages - if set to '1', the packages downloaded from repository will be kept in a cache on the local disk. If the value is set to '0', the packages will be removed after the commit transaction finishes. (supported since libzypp-4.2.7)