Where Does Zypper Store Repositories?
Zypper keeps repo entries as .repo files in /etc/zypp/repos.d, with credentials in a separate protected folder.
Last updated
Zypper reads repositories from .repo files in /etc/zypp/repos.d. Each file names one source with its URL, priority, and refresh policy. Credentials for authenticated repos stay out of these files in a restricted credentials directory.
Service files for repo families sit in /etc/zypp/services.d beside them. The package cache accumulates under /var/cache/zypp for reuse. Prefer zypper commands over hand edits so the solver metadata stays consistent.
Where Zypper stores this, by platform
/etc/zypp/repos.d
One .repo file per source with URL and priority. Credentials live separately under restricted permissions. Services for repo families sit in services.d nearby.
Frequently asked questions
How do I add a repo on openSUSE?
Use zypper addrepo with the URL and alias, which writes the .repo file for you. Refresh with zypper refresh afterward. Hand edits work but skip validation.
Where is the Zypper package cache?
Under /var/cache/zypp per repository. Clear it with zypper clean when space runs low. Downloads re fetch on the next install.
Notice an outdated path? Let us know.