Bug 1224213

Summary: [doc] Issue in "Listing installed packages and repositories"
Product: [openSUSE] PUBLIC SUSE Linux Enterprise Server 15 SP5 Reporter: Jiri Belka <jiri.belka>
Component: DocumentationAssignee: Christoph Wickert <cwickert>
Status: RESOLVED FIXED QA Contact: Frank Sundermeyer <fs>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: https://jira.suse.com/browse/DOCTEAM-1440
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jiri Belka 2024-05-14 12:39:30 UTC
Listing installed packages and repositories:

https://documentation.suse.com/sles/15-SP5/html/SLES-all/cha-update-preparation.html#sec-update-preparation-packagelist

2. Also create a file named installed-software.bak containing a list of all installed packages:

rpm -qa --queryformat '%{NAME}\n' >
     installed-software.bak

^^ wrong command: either have it on one line or use '\'
Comment 1 Jiri Belka 2024-05-14 12:44:04 UTC
Plus, I'm sorry but point 3. (see below) does not have, IMO, logic in the flow.

---%>---
3. Back up both files. The repositories and installed packages can be restored with the following commands:

zypper ar repositories.bak.repo
zypper install $(cat installed-software.bak)
---%<---

If you want to provide a procedure how to rollback, it should be not inside a numbered list of 'Listing installed packages and repositories' section but somewhere else.
Comment 2 Tomáš Bažant 2024-05-27 08:45:08 UTC
Thank you for reporting this bug!
It is being tracked and processed as part of our queue.

Thank you for reporting this bug!
It is being tracked and processed as part of our queue.
Comment 3 Christoph Wickert 2024-05-27 09:23:32 UTC
Fixed in
main: https://github.com/SUSE/doc-sle/commit/86c4eb92
maintenance/SLE15SP5: https://github.com/SUSE/doc-sle/commit/7dd7c5a0
maintenance/SLE15SP4: https://github.com/SUSE/doc-sle/commit/09dfec07
maintenance/SLE15SP3: https://github.com/SUSE/doc-sle/commit/1ff311f7
maintenance/SLE15SP2: https://github.com/SUSE/doc-sle/commit/ed75b8d4

SLE 12 SP5 is not affected.