Difference between revisions of "SUSE Manager/rhel-minor-version"

From MicroFocusInternationalWiki
Jump to: navigation, search
(First method with "spacewalk-create-channel" :)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
You can create a clone of the SUSE Expanded Support channels for RHEL as per the RHEL update level, for example RHEL 5.8 with the spacewalk-create-channel utility.
+
[[SUSE_Manager|SUSE Manager Main Page]]
  
First you need to install the spacewalk-remote-utils package which is in the SLES11-SP2-SUSE-Manager-Tools channels. Here we will install it locally on the SUSE Manager server but you can install and use it on a remote server.
+
= Cloning channel per RHEL update level =
Make sure that the channel SLES11-SP2-SUSE-Manager-Tools is enabled :
+
You can create a clone of the '''SUSE Expanded Support channels for RHEL''' as per the RHEL update level, for example RHEL 5.8 with the '''spacewalk-create-channel''' utility.
*zypper mr -e SLES11-SP2-SUSE-Manager-Tools
+
 
 +
To achieve this we have two methods :
 +
 
 +
== '''First method with "spacewalk-create-channel" :''' ==
 +
 
 +
First you need to install the '''spacewalk-remote-utils''' package which is in the '''SLES1X-SPX-SUSE-Manager-Tools''' channels (replace X by the needed version). Here we will install it locally on the SUSE Manager server but you can install and use it on a remote server.
 +
 
 +
For instance : make sure that the channel SLES11-SP4-SUSE-Manager-Tools is enabled :
 +
<pre># zypper mr -e SLES11-SP4-SUSE-Manager-Tools</pre>
 
Install :
 
Install :
*zypper install spacewalk-remote-utils
+
<pre># zypper install spacewalk-remote-utils</pre>
  
 
Then you can use the spacewalk-create-channel command :  
 
Then you can use the spacewalk-create-channel command :  
*spacewalk-create-channel --user=Admin --server=localhost --sourceChannel=res5-x86_64 --version=5 --update=u8 --release=Server --arch=x86_64 --destChannel=rhel-5.8-x86_64 --clone
+
<pre># spacewalk-create-channel --user=Admin --server=localhost --sourceChannel=res5-x86_64 --version=5 \
 +
--update=u8 --release=Server --arch=x86_64 --destChannel=rhel-5.8-x86_64 --clone
 
Password:
 
Password:
 
 
Trying with source channel: res5-x86_64
 
Trying with source channel: res5-x86_64
 
 
Reusing rhel-5.8-x86_64 as destination channel
 
Reusing rhel-5.8-x86_64 as destination channel
 
 
3585 packages in source file to push.
 
3585 packages in source file to push.
 
 
Pushing 1667 packages, please wait.
 
Pushing 1667 packages, please wait.
 +
Successfully pushed 1667 packages out of 3585</pre>
  
Successfully pushed 1667 packages out of 3585
+
'''Warning : The packages pushed into the cloned channels are in the original minor update release version, for instance in this example you will not find the latest patches of the RHEL 5.8 in rhel-5.8-x86_64 channel.''' (cf. https://fate.suse.com/315258)
  
 
For detailed information use the manual of the spacewalk-create-channel command :  
 
For detailed information use the manual of the spacewalk-create-channel command :  
* man spacewalk-create-channel
+
<pre># man spacewalk-create-channel</pre>
 +
 
 +
== '''Second method with "spacewalk-clone-by-date" :''' ==
 +
 
 +
Alternatively, if you want a channel for version 6.X or 5.X, you can create a clone channel that contains packages and errata to the date of released of the 6.X+1 or 5.X+1 versions. (see https://access.redhat.com/site/articles/3078 for the released date of RHEL distros) :
 +
 
 +
- Here we use the released date of 6.4 to create a 6.3 channel :
 +
<pre># spacewalk-clone-by-date -u Admin -d 2013-02-20 --channels=rhel-x86_64-server-6 \
 +
clone-rhel-x86_64-server-6-3 --channels=res6-x86_64 clone-res6-3-x86_64
 +
Password:
 +
Reading repository information.
 +
 
 +
By continuing the following channels will be created:
 +
clone-res6-3-x86_64, clone-rhel-x86_64-server-6-3
 +
 
 +
Continue with channel creation (y/n)?y
 +
 
 +
Cloning rhel-x86_64-server-6 to clone-rhel-x86_64-server-6-3 with original package set.
 +
Cloning res6-x86_64 to clone-res6-3-x86_64 with original package set.
 +
Copying repodata, please wait.
 +
Solving Dependencies (88):
 +
________________________________________
 +
######################################## - complete
 +
Processing Dependencies:
 +
________________________________________
 +
######################################## - complete
 +
 
 +
By continuing the following will be cloned:
 +
  rhel-x86_64-server-6 -> clone-rhel-x86_64-server-6-3  (0/0 Errata)
 +
  res6-x86_64 -> clone-res6-3-x86_64  (1809/2384 Errata)
 +
 
 +
Continue with clone (y/n)?y
 +
 
 +
Cloning Errata into clone-res6-3-x86_64 (1809):
 +
________________________________________
 +
######################################## - complete
 +
Copying repodata, please wait.
 +
Solving Dependencies (11665):
 +
________________________________________
 +
######################################## - complete
 +
Processing Dependencies:
 +
________________________________________
 +
######################################## - complete
 +
</pre>
 +
 
 +
For detailed information use the manual of the spacewalk-clone-by-date command :
 +
<pre># man spacewalk-clone-by-date</pre>
 +
spacewalk-clone-by-date

Latest revision as of 10:10, 7 August 2015

SUSE Manager Main Page

Cloning channel per RHEL update level

You can create a clone of the SUSE Expanded Support channels for RHEL as per the RHEL update level, for example RHEL 5.8 with the spacewalk-create-channel utility.

To achieve this we have two methods :

First method with "spacewalk-create-channel" :

First you need to install the spacewalk-remote-utils package which is in the SLES1X-SPX-SUSE-Manager-Tools channels (replace X by the needed version). Here we will install it locally on the SUSE Manager server but you can install and use it on a remote server.

For instance : make sure that the channel SLES11-SP4-SUSE-Manager-Tools is enabled :

# zypper mr -e SLES11-SP4-SUSE-Manager-Tools

Install :

# zypper install spacewalk-remote-utils

Then you can use the spacewalk-create-channel command :

# spacewalk-create-channel --user=Admin --server=localhost --sourceChannel=res5-x86_64 --version=5 \
--update=u8 --release=Server --arch=x86_64 --destChannel=rhel-5.8-x86_64 --clone
Password:
Trying with source channel: res5-x86_64
Reusing rhel-5.8-x86_64 as destination channel
3585 packages in source file to push.
Pushing 1667 packages, please wait.
Successfully pushed 1667 packages out of 3585

Warning : The packages pushed into the cloned channels are in the original minor update release version, for instance in this example you will not find the latest patches of the RHEL 5.8 in rhel-5.8-x86_64 channel. (cf. https://fate.suse.com/315258)

For detailed information use the manual of the spacewalk-create-channel command :

# man spacewalk-create-channel

Second method with "spacewalk-clone-by-date" :

Alternatively, if you want a channel for version 6.X or 5.X, you can create a clone channel that contains packages and errata to the date of released of the 6.X+1 or 5.X+1 versions. (see https://access.redhat.com/site/articles/3078 for the released date of RHEL distros) :

- Here we use the released date of 6.4 to create a 6.3 channel :

# spacewalk-clone-by-date -u Admin -d 2013-02-20 --channels=rhel-x86_64-server-6 \
clone-rhel-x86_64-server-6-3 --channels=res6-x86_64 clone-res6-3-x86_64
Password:
Reading repository information.

By continuing the following channels will be created:
clone-res6-3-x86_64, clone-rhel-x86_64-server-6-3

Continue with channel creation (y/n)?y

Cloning rhel-x86_64-server-6 to clone-rhel-x86_64-server-6-3 with original package set.
Cloning res6-x86_64 to clone-res6-3-x86_64 with original package set.
Copying repodata, please wait.
Solving Dependencies (88):
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete

By continuing the following will be cloned:
  rhel-x86_64-server-6 -> clone-rhel-x86_64-server-6-3  (0/0 Errata)
  res6-x86_64 -> clone-res6-3-x86_64  (1809/2384 Errata)

Continue with clone (y/n)?y

Cloning Errata into clone-res6-3-x86_64 (1809):
________________________________________
######################################## - complete
Copying repodata, please wait.
Solving Dependencies (11665):
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete

For detailed information use the manual of the spacewalk-clone-by-date command :

# man spacewalk-clone-by-date

spacewalk-clone-by-date