Enabling openSUSE repositories on SMT server
This document (7006655) is provided subject to the disclaimer at the end of this document.
Subscription Management Tool (SMT) for SUSE Linux Enterprise 11
openSUSE 11.2 and greater
It is however possible to setup mirroring of the openSUSE repositories by use of the "Custom repositories" feature of SMT.
This is described in section 7.1.2 of the Subscription Management Tool guide.
The command to use is smt-setup-custom-repos, which amongst others needs the Product ID for the products to which the repository in question applies. This ID is only used for the registration of SUSE Linux Enterprise machines against SMT and can be set to anything for the openSUSE repositories.
Since there is no Product ID for openSUSE 11.2 and newer, the Product ID for the repositories can e.g. be set to 1260, which is openSUSE 11.1
As an example configure an SMT server (named smt11a) to mirror the OpenSUSE 11.3 repositories and set up a client to consume updates from that, follow these steps :
- Enable the repository for mirroring. Note that SMT will mirror all architectures and sources since OpenSUSE only publishes a single repository with everything in it. Not really a big deal - diskspace is cheap...
On the SMT server :
# smt-setup-custom-repos --name OpenSUSE_113_Updates --description "OpenSUSE 11.3 Updates" --exturl http://download.opensuse.org/update/11.3/ --productid 1260
Repository successfully added.
- Verify the repository and find the ID of it.
# smt-repos -v OpenSUSE_113_Updates
[*] [ 1] OpenSUSE_113_Updates_2 --
(OpenSUSE 11.3 Updates)
Repository ID: 3483c0490f6581bcda4d8b0a6366934b801898f8
Staging : N
Assigned to product: openSUSE 11.1
- Kick off the initial mirror
# smt-mirror -d -L /var/log/smt/smt-mirror.log --repository 3483c0490f6581bcda4d8b0a6366934b801898f8 &
- Once it has completed, go to a client and add the repository either through the YaST Software repositories or from the command line.
The command-line way to do it would look like the following.
- Add the repository with :
# zypper as -n "OpenSUSE 11.3 Updates on local SMT" -t rpm-md http://smt11a/repo/RPMMD/OpenSUSE_113_Updates/ OpenSUSE_11.3_Updates
Adding repository 'OpenSUSE 11.3 Updates on local SMT' [done]
Repository 'OpenSUSE 11.3 Updates on local SMT' successfully added
- Enable autorefresh of it with a command like
# zypper ms -r OpenSUSE_11.3_Updates
Autorefresh has been disabled for repository 'OpenSUSE_11.3_Updates'.
- If it is desired to keep the "official" online repositories (e.g. for mobile clients) it is beneficial to change the priority of the repository on the SMT server above the online repos. This ensures that the client will always use the SMT based repository when it is available. To do that, set the priority to a lower number than the online repository.
- First find the current priorities :
# zypper lr -p -u
# | Alias | Name | Enabled | Refresh | Priority | URI
1 | OpenSUSE_11.3_Updates | OpenSUSE 11.3 Updates on local SMT | Yes | Yes | 90 | http://smt11a/repo/RPMMD/OpenSUSE_113_Updates/
2 | Updates for openSUSE 11.3 11.3-1.82 | Updates for openSUSE 11.3 11.3-1.82 | Yes | Yes | 99 | http://download.opensuse.org/update/11.3/
3 | openSUSE-11.3_11.3-1.82 | openSUSE-11.3 11.3-1.82 | Yes | Yes | 98 | http://t8.nts.com/sle/os113x8664/CD1
4 | repo-non-oss | openSUSE-11.3-Non-Oss | Yes | Yes | 99 | http://download.opensuse.org/distribution/11.3/repo/non-oss/
- Then change the priority of the SMT based repository :
# zypper mr -p 90 OpenSUSE_11.3_Updates
Repository 'OpenSUSE_11.3_Updates' priority has been set to 90.
- It should be possible to figure out how to configure this through the YaST module from the information provided above.
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7006655
- Creation Date:17-AUG-10
- Modified Date:07-FEB-13
- SUSESubscription Management ToolSUSE Linux Enterprise Server
Did this document solve your problem? Provide Feedback