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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.