Software Repositories

Table of Contents

Repositories are used to collect software packages. When you have access to a software repository, you can install any of the software that the repository provides. You must have at least one repository associated with your software channels in SUSE Manager to assign clients to the channel and install and update packages on the client.

Most default channels in SUSE Manager are already associated with the correct repositories. If you are creating custom channels, you need to associate a repository that you have access to, or that you have created yourself.

For more information about custom repositories and channels, see Custom Channels.

1. Local Repository Locations

You can configure local repositories on Salt clients, to provide packages that are not supplied by SUSE Manager channels.

In most cases, client systems do not require local repositories. Local repositories can lead to problems knowing which packages are available on the client. This can lead to installing unexpected packages.

Local repositories are disabled during onboarding.

For Salt clients, local repositories will be disabled each time a channel state is executed. For example, when applying the highstate or performing a package action.

If local repositories should stay enabled after onboarding the following pillar must be set for the affected Salt client:

Edit the /srv/pillar/top.sls file:

base:
  'minionid':
    - localrepos

Edit the /srv/pillar/localrepos.sls file:

mgr_disable_local_repos: False

After a client has completed onboarding, you can add local repositories to these locations:

Table 1. Local Repository Locations
Client Operating System Local Repository Directory

SUSE Linux Enterprise Server

/etc/zypp/repos.d

openSUSE

/etc/zypp/repos.d

SUSE Linux Enterprise Server Expanded Support

/etc/yum.repos.d/

Red Hat Enterprise Linux

/etc/yum.repos.d/

CentOS

/etc/yum.repos.d/

Ubuntu

/etc/apt/sources.list.d/

Debian

/etc/apt/sources.list.d/