Bug 1214001

Summary: Checking repository conformance
Product: [openSUSE] openSUSE Distribution Reporter: Ulrich Windl <Ulrich.Windl>
Component: DocumentationAssignee: Frank Sundermeyer <fs>
Status: RESOLVED FIXED QA Contact: Frank Sundermeyer <fs>
Severity: Enhancement    
Priority: P5 - None CC: tbazant
Version: Leap 15.4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ulrich Windl 2023-08-04 19:33:50 UTC
In https://en.opensuse.org/SDB:System_upgrade_to_Leap_15.5 scrtion "5. Update the repos" the command recommended is:
grep baseurl /etc/zypp/repos.d/*.repo

However the output is lengthy and hard for humans to read, like this:
/etc/zypp/repos.d/ftp.gwdg.de-openSUSE_Leap_$releasever.repo:baseurl=http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_$releasever/
/etc/zypp/repos.d/repo-backports-debug-update.repo:baseurl=http://download.opensuse.org/update/leap/$releasever/backports_debug/
...

Wouldn't it be easier for humans to use this command instead?:
grep baseurl /etc/zypp/repos.d/*.repo | grep -v releasever

For my system the only line output was:
/etc/zypp/repos.d/Repository_1.repo:baseurl=hd:/?device=/dev/disk/by-id/usb-SanDisk_Ultra_04015fec...342821ec-0:0-part2&filesystem=auto