Be smart. Think open source.

SUSE Manager 3 Hands-on

Hands-on :: Patch Management 07

Import the new patches and apply the "parted"-patch to a system.

Patch Management 07- Data directory

Configure the new repository data.

Stop the tomcat service:

# systemctl stop tomcat

Change the data directory in /etc/rhn/rhn.conf to:

# local data directory
server.susemanager.fromdir = /data/repos_wpatches_20161116

Start the tomcat service:

# systemctl start tomcat

Patch Management 07 - Synchronization

Refresh the channel and schedule a reposync:

mgr-sync refresh
mgr-sync add channel sles12-sp1-updates-x86_64

Verify the synchronization:

tailf /var/log/rhn/reposync/sles12-sp1-updates-x86_64.log

Patch Management 07 - Vendor Channel

Check the SLES12 SP1 Updates vendor channel:

# spacecmd softwarechannel_details sles12-sp1-updates-x86_64
INFO: Connected to https://localhost/rpc/api as admin
Label:              sles12-sp1-updates-x86_64
Name:               SLES12-SP1-Updates for x86_64
Architecture:       x86_64
Parent:             sles12-sp1-pool-x86_64
Systems Subscribed: 0
Number of Packages: 2164
[...]

Patch Management 07- Development Channel

Check the SLES12 SP1 Updates development channel:

# spacecmd softwarechannel_details devl-sles12-sp1-updates-x86_64               
INFO: Connected to https://localhost/rpc/api as admin
Label:              devl-sles12-sp1-updates-x86_64
Name:               devl-sles12-sp1-updates-x86_64
Architecture:       x86_64
Parent:             devl-sles12-sp1-pool-x86_64
Systems Subscribed: 1
Number of Packages: 2140
[...]

Patch Management 07 - Vendor Channel

List the patches from the vendor channel:

Patch Management 07 - Development Channel

List the patches from the development channel:

Patch Management 07 - Channel Diff

Comapre the updates channels:

# spacecmd softwarechannel_errata_diff \
           sles12-sp1-updates-x86_64 \
           devl-sles12-sp1-updates-x86_64 \
           | grep par
INFO: Connected to https://localhost/rpc/api as admin
-SUSE-12-SP1-2016-1310 Recommended update for apparmor
-SUSE-12-SP1-2016-1655 Recommended update for parted
+CL-SUSE-12-SP1-2016-1310 Recommended update for apparmor

Patch Management 07 - Clone Patches

Select the patch and click the "Clone Patches" button.

Patch Management 07 - Clone Patches

Click "Confirm:"

Patch Management 07 - Unpublished Patches

Click on the patch:

Patch Management 07 - Publish Patches

Click "Publish Patches":

Patch Management 07 - Publish Patches

Select the devl channel and click "Publish Patches":

Patch Management 07 - Publish Patches

Select the packages and click "Continue":

Patch Management 07 - Verify a devl System

Click on the system srv2:

Patch Management 07 - Apply Patches

Click on "Non-Critical":

Patch Management 07 - Apply Patches

Select the patch and click "Apply Patches":

Patch Management 07 - Apply Patches

Click "Confirm":

Patch Management 07 - Verify System

Patch Management 07 - Verify System

Check the RPM-database on the srv2 system:

# rpm -qa --last | head -10

Check the patches with zypper command:

# zypper patches | grep "1655"

Feel Free to Contact Us

www.adfinis-sygroup.ch

Tech Blog

GitHub

info@adfinis-sygroup.ch

Twitter