From c71ab870c9f32690a32fe4f91fa37714a1f021a5 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 10 Dec 2015 10:59:07 +0100 Subject: [PATCH] Added old-abi function to find packages belonging to the old C++ ABI --- zsh_functions | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zsh_functions b/zsh_functions index 405e06b..8646175 100644 --- a/zsh_functions +++ b/zsh_functions @@ -85,7 +85,6 @@ virtual_env_prompt() { } delete-old-archives() { - sudo tarsnap --fsck archives=$(sudo tarsnap --list-archives | sort) del_archives=$(echo $archives | head -n $(($(echo $archives | wc -l) - 3))) del_archives=("${(@f)del_archives}") @@ -109,3 +108,11 @@ update-mirrors() { sudo sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist" fi } + +old-abi() { + for i in $(pacman -Qqm); do + if pacman -Qql $i | xargs readelf -d 2>/dev/null | grep -q libstdc++.so.6; then + echo $i; + fi; + done +}