Difference between revisions of "SUSE Manager/Uptodate bootstrap repo"

From MicroFocusInternationalWiki
Jump to: navigation, search
(Creating up-to-date bootstrap repositories)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[SUSE_Manager|SUSE Manager Main Page]]
 
=== Creating up-to-date bootstrap repositories ===
 
=== Creating up-to-date bootstrap repositories ===
You can have up-to-date packages for the bootstrap repositories, with the new '''mgr-create-bootstrap-repo''' command.
+
You can have up-to-date packages for the bootstrap repositories, with the new '''mgr-create-bootstrap-repo''' command introduced in SUSE Manager 1.7.
  
First you have to uninstall  packages of the old bootstrap repositories
+
Of course you should have the related Pool and Update channels available and synced to be able to create the bootstrap repository you want :
<pre># zypper remove spacewalk-client-repository spacewalk-client-repository-sle-10-4
+
spacewalk-client-repository-sle-10-3 spacewalk-client-repository-sle-11-1
+
Loading repository data...
+
Reading installed packages...
+
Resolving package dependencies...
+
 
+
The following packages are going to be REMOVED:
+
  spacewalk-client-repository spacewalk-client-repository-sle-10-3
+
  spacewalk-client-repository-sle-10-4 spacewalk-client-repository-sle-11-1
+
 
+
4 packages to remove.
+
After the operation, 62.5 MiB will be freed.
+
Continue? [y/n/?] (y): y
+
Removing spacewalk-client-repository-0.1-0.7.1 [done]
+
Removing spacewalk-client-repository-sle-10-4-0.1-0.7.2 [done]
+
Removing spacewalk-client-repository-sle-11-1-0.1-0.7.1 [done]
+
Removing spacewalk-client-repository-sle-10-3-0.1-0.7.2 [done]</pre>
+
 
+
Then you can call the mgr-create-bootstrap-repo for SLE-11-SP2-x86_64  :
+
 
<pre># mgr-create-bootstrap-repo
 
<pre># mgr-create-bootstrap-repo
 +
SLE-10-SP4-x86_64
 
SLE-11-SP1-x86_64
 
SLE-11-SP1-x86_64
 
SLE-11-SP2-x86_64
 
SLE-11-SP2-x86_64
Enter product label: SLE-11-SP2-x86_64
+
SLE-11-SP3-x86_64
copy 'spacewalk-client-tools-1.2.15-0.19.1.noarch'
+
SLE-12-x86_64
copy 'zypper-1.3.21-0.3.1.x86_64'
+
Enter product label: SLE-11-SP3-x86_64
copy 'libzypp-6.37.9-0.3.1.x86_64'
+
copy 'spacewalk-client-tools-1.7.14.18-0.5.2.noarch'
copy 'satsolver-tools-0.14.20-0.3.1.x86_64'
+
copy 'zypper-1.6.308-0.9.16.x86_64'
copy 'zypp-plugin-python-0.3-2.4.2.1.x86_64'
+
copy 'libzypp-9.37.1-0.7.1.x86_64'
copy 'zypp-plugin-spacewalk-0.5-0.3.1.x86_64'
+
copy 'satsolver-tools-0.17.7-0.6.2.1.x86_64'
copy 'spacewalk-check-1.2.15-0.19.1.noarch'
+
copy 'zypp-plugin-python-0.3-2.5.38.x86_64'
copy 'spacewalk-client-setup-1.2.15-0.19.1.noarch'
+
copy 'zypp-plugin-spacewalk-0.9.5-0.5.5.x86_64'
copy 'newt-0.52.10-1.35.7.x86_64'
+
copy 'spacewalk-check-1.7.14.18-0.5.2.noarch'
copy 'libnewt0_52-0.52.10-1.35.7.x86_64'
+
copy 'spacewalk-client-setup-1.7.14.18-0.5.2.noarch'
copy 'python-newt-0.52.10-1.35.7.x86_64'
+
copy 'newt-0.52.10-1.35.113.x86_64'
copy 'python-dmidecode-3.10.11-0.6.1.x86_64'
+
copy 'libnewt0_52-0.52.10-1.35.113.x86_64'
copy 'python-ethtool-0.3-0.4.1.x86_64'
+
copy 'python-newt-0.52.10-1.35.113.x86_64'
 +
copy 'python-dmidecode-3.10.11-0.10.1.x86_64'
 +
copy 'python-ethtool-0.7-0.15.15.1.x86_64'
 
copy 'python-openssl-0.7.0-1.17.2.x86_64'
 
copy 'python-openssl-0.7.0-1.17.2.x86_64'
copy 'rhnlib-2.5.28-0.7.1.x86_64'
+
copy 'rhnlib-2.5.51.5-0.5.1.x86_64'
copy 'spacewalksd-4.9.7-0.11.1.x86_64'
+
copy 'spacewalksd-4.9.15.3-0.5.3.x86_64'
copy 'suseRegisterInfo-1.2.0-0.7.1.x86_64'
+
copy 'suseRegisterInfo-1.7.4-0.5.1.x86_64'
copy 'libcurl4-7.19.7-1.20.21.1.x86_64'
+
copy 'libcurl4-7.19.7-1.28.1.x86_64'
Spawning worker 0 with 18 pkgs
+
copy 'slang-2.1.1-58.18.x86_64'
 +
Spawning worker 0 with 26 pkgs
 
Workers Finished
 
Workers Finished
 
Gathering worker results
 
Gathering worker results
Line 52: Line 38:
 
Saving other metadata</pre>
 
Saving other metadata</pre>
  
You may repeat the command for SLE-11-SP1-x86_64.
+
You may repeat the command for SLE-11-SP1-x86_64 and SLE-11-SP2-x86_64 .
  
 
'''So now you have the latest packages version for you bootstrap repositories.'''
 
'''So now you have the latest packages version for you bootstrap repositories.'''
 +
 +
  For bootstrapping SLES11 SP1 clients you need to create a compatibility symlink.
 +
 
 +
  $> cd /srv/www/htdocs/pub/repositories
 +
  $> ln -s sle/11/1/bootstrap susemanager-client-setup
  
  
 
Refers to the  "'''mgr-create-bootstrap-repo'''" manpages for more informations.
 
Refers to the  "'''mgr-create-bootstrap-repo'''" manpages for more informations.
 +
 +
===Adding Packages to bootstrap repository===
 +
 +
To change the list of packages which are copied to the bootstrap repository, you can define your own
 +
bootstrap data file.
 +
 +
  $> cd /usr/share/susemanager/
 +
  $> cp mgr_bootstrap_data.py my_mgr_bootstrap_data.py
 +
 +
Now you can modify the package lists for:
 +
 +
* SLES10: PKGLIST10
 +
* SLES11: PKGLIST11
 +
* SLES12 all Servicepacks: PKGLIST12
 +
* SLES12 GA only: ENHANCE12
 +
* SLES12 SP1 only: ENHANCE12SP1
 +
 +
After this call
 +
 +
  $> mgr-create-bootstrap-repo --datamodule=my_mgr_bootstrap_data

Latest revision as of 08:51, 20 April 2016

SUSE Manager Main Page

Creating up-to-date bootstrap repositories

You can have up-to-date packages for the bootstrap repositories, with the new mgr-create-bootstrap-repo command introduced in SUSE Manager 1.7.

Of course you should have the related Pool and Update channels available and synced to be able to create the bootstrap repository you want :

# mgr-create-bootstrap-repo
SLE-10-SP4-x86_64
SLE-11-SP1-x86_64
SLE-11-SP2-x86_64
SLE-11-SP3-x86_64
SLE-12-x86_64
Enter product label: SLE-11-SP3-x86_64
copy 'spacewalk-client-tools-1.7.14.18-0.5.2.noarch'
copy 'zypper-1.6.308-0.9.16.x86_64'
copy 'libzypp-9.37.1-0.7.1.x86_64'
copy 'satsolver-tools-0.17.7-0.6.2.1.x86_64'
copy 'zypp-plugin-python-0.3-2.5.38.x86_64'
copy 'zypp-plugin-spacewalk-0.9.5-0.5.5.x86_64'
copy 'spacewalk-check-1.7.14.18-0.5.2.noarch'
copy 'spacewalk-client-setup-1.7.14.18-0.5.2.noarch'
copy 'newt-0.52.10-1.35.113.x86_64'
copy 'libnewt0_52-0.52.10-1.35.113.x86_64'
copy 'python-newt-0.52.10-1.35.113.x86_64'
copy 'python-dmidecode-3.10.11-0.10.1.x86_64'
copy 'python-ethtool-0.7-0.15.15.1.x86_64'
copy 'python-openssl-0.7.0-1.17.2.x86_64'
copy 'rhnlib-2.5.51.5-0.5.1.x86_64'
copy 'spacewalksd-4.9.15.3-0.5.3.x86_64'
copy 'suseRegisterInfo-1.7.4-0.5.1.x86_64'
copy 'libcurl4-7.19.7-1.28.1.x86_64'
copy 'slang-2.1.1-58.18.x86_64'
Spawning worker 0 with 26 pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata

You may repeat the command for SLE-11-SP1-x86_64 and SLE-11-SP2-x86_64 .

So now you have the latest packages version for you bootstrap repositories.

 For bootstrapping SLES11 SP1 clients you need to create a compatibility symlink.
 
 $> cd /srv/www/htdocs/pub/repositories
 $> ln -s sle/11/1/bootstrap susemanager-client-setup


Refers to the "mgr-create-bootstrap-repo" manpages for more informations.

Adding Packages to bootstrap repository

To change the list of packages which are copied to the bootstrap repository, you can define your own bootstrap data file.

 $> cd /usr/share/susemanager/
 $> cp mgr_bootstrap_data.py my_mgr_bootstrap_data.py

Now you can modify the package lists for:

  • SLES10: PKGLIST10
  • SLES11: PKGLIST11
  • SLES12 all Servicepacks: PKGLIST12
  • SLES12 GA only: ENHANCE12
  • SLES12 SP1 only: ENHANCE12SP1

After this call

 $> mgr-create-bootstrap-repo --datamodule=my_mgr_bootstrap_data