mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

check-packages.sh (389B)


      1 #!/bin/bash
      2 
      3 # ~/config/private/apt/machines contains lines of the form:
      4 # HOSTNAME file1 file2 file3
      5 
      6 comm -3 <(apt-mark showmanual | sort) \
      7   <(grep "^`hostname | cut -d'.' -f1`" ~/config/private/apt/machines |
      8     cut -d ' ' -f2- | tr ' ' '\n' | grep -v '^\s*$' |
      9     sed "s_^_$HOME/config/apt/_" | xargs sort |
     10     cut -d ' ' -f1 | cut -d '#' -f1 |
     11     grep -v '^\s*$' | sort | uniq)