From 9e82c96713989a7565eadac505b36e3dbe91cd5a Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 07:56:17 -0400 Subject: Added, removed, renamed scripts --- .local/bin/who-depends | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 .local/bin/who-depends (limited to '.local/bin/who-depends') diff --git a/.local/bin/who-depends b/.local/bin/who-depends deleted file mode 100755 index d1fb0c2..0000000 --- a/.local/bin/who-depends +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -# Script that takes a package as an argument and returns installed packages -# that are dependent on it - -[ $# -eq 1 ] || echo "usage: who-depends package" -apt list --installed | tail -n+2 | cut -d '/' -f 1 > /tmp/whodepends -pkg="$1" -deps_all=$(apt-cache rdepends $pkg | tail -n+3 | sed "s/^\s*//") -for dep in $deps_all -do - grep -lq "$dep" /tmp/whodepends && echo "$dep" -done -- cgit v1.2.3