It's possible to use JetPatch when you are working with local repositories. Here is the full guide on how to setup your environemnt and make sure all repositories are configured correctly and available for Jetpatch usage.
Please note that the instructions below are for setting up local repositories and are not related to JetPatch functionality.
Prerequisites:
- SUSE 12 SP5 for the Local Repository Server
- 100GB of Free Space in root Volume
- SUSE Installation Disc
- Internet Connectivity
- SUSE Subscription (from SUSE Customer Center https://scc.suse.com/)
- Registration Email
- Mirror Credentials (Username and Password)
- Registration Code
- Supported client servers:
- SUSE 12 SP1-SP5
Please note: Proxy setup for SUSE local repo is currently not supported
STEP 1: Setting up the Local Repository Server
Subscription Manager Tool (SMT) Setup
To install SMT on an existing SUSE Linux Enterprise Server system follow the steps below:
- Mount SUSE Installation Disc
- Run YaST › Software › Software Management
- Search for “smt”, Select “patterns-smt” Packages for Installation and Select “Accept” to start the Installation.
- Select “FINISH” after the installation is over to exit.
Subscription Manager Tool (SMT) Configuration
The two-step SMT Configuration Wizard helps you configure SMT after SUSE Linux Enterprise Server installation is finished. You can change the configuration later using the YaST SMT Server Configuration module.
Run the following command to start the configuration:
yast smt-server |
Update Server Configuration:
- Open the smt firewall port by checking “Open Port in Firewall”.
- Enter your mirror credentials - username and password
- Select “Test” to check the credentials.
- Enter your email at “SCC E-mail Used for Registration”
- Click “OK” to finish
SCC Credentials
- Then, in the next window click “OK” to continue.
Registration
- Enter email address
- Enter Registration Code
- Click OK to continue
Extensions and Module Selection
- Click OK to continue
Writing SMT Configuration
- Set the DB password to anything you like (can also be blank, but remember the password you input) and Select 'OK'
Please note: If the server is missing a certification a new window would appear, select “Run CA Management” to finish.
Installation Overview
- Enter the root password
- Select “OK” to finish.
STEP 2: Downloading Repositories
- Open the repository selection menu by typing the following:
“YaSY” -> “Network Services” -> “SMT Server Management”. |
- In the Repository Filter box type the name of the OS you wish to download its repositories.
- Choose and Select "Pool" and "Updates" repositories
- Select "Mirror Now" to start downloading the repository
- Preform these steps for every OS and every repository that's needed.
- When all repositories are downloaded successfully click "OK" to finish
Please Note: Downloading repositories might take a while and depends on internet connectivity.
Step 3: Setup Local Yum Repository on Client Machines
There are two ways to setup the local yum repository on client machines. The first is using the command line. The second is using the SUSE graphic interface.
Using the command-line
For SUSE 12 SP1-SP5:
SUSEConnect --de-register
SUSEConnect --cleanup
rm -f /etc/SUSEConnect
rm -rf /etc/zypp/credentials.d/*
rm -rf /etc/zypp/repos.d/*
rm -f /etc/zypp/services.d/*
wget http://[YOUR-SMT-SERVER]/repo/tools/clientSetup4SMT.sh
chmod 755 clientSetup4SMT.sh
./clientSetup4SMT.sh --host [YOUR-SMT-SERVER]
zypper ref -s
If need help with Zypper, check out this Zypper Cheat Sheet
____________________________________________________________________________________________________________
Using the graphic interface
For SUSE 12 SP1 and Above Machines:
- Connect to you Client Machine
- Type “yast registration”
- In the “Registration” windows select “Register System via local SMT Server”
- Insert the local repository server url in the “Local Registration Server URL” in the following format: https://[hostname]/center/regsvc/
- Select “Next” to continue.
- If this is your first time registering the machine as a client, select “Trust” in the next window and "OK" in the next window to finish.
You're all set!
Comments
0 comments
Please sign in to leave a comment.