Created
December 3, 2013 00:02
-
-
Save nogweii/7761427 to your computer and use it in GitHub Desktop.
Automatically install -debuginfo packages for all installed packages in OpenSUSE (tested on 13.1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
zypper packages -i 2>/dev/null | cut -d'|' -f3 | sort -u | sed -n 's/^ \([a-z0-9-]*\)\s\+/\1-debuginfo/p' | xargs zypper search -u -t package | cut -d'|' -f2 | sed -n 's/^\s//;s/\s\+$//gp' | tail -n+2 | xargs sudo zypper install |
https://gist.github.com/nogweii/7761427?permalink_comment_id=4281073#gistcomment-4281073
@ubernostrom, you might be interested in subscribing to https://forums.opensuse.org/t/how-to-automatically-install-corresponding-debuginfo-package-during-installation-and-update/173513. Many thanks for your method, although it takes an extraordinarily long time to invoke for me.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FYI, this misses packages because the regex
^ \([a-z0-9-]*\)\s\+
doesn't match packages with+
or_
in their names.For example it misses
libstc++6
andlibopenssl1_0_0
.Here's a version with that fixed: