Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 22 lines (18 sloc) 0.473 kb
82a793b @jeremyz add arch-pkgs-update
authored
1 #!/bin/bash
0fd6772 @jeremyz gitolite test
authored
2
82a793b @jeremyz add arch-pkgs-update
authored
3 [ $# -lt 1 ] && echo "usage $0 pkg_list (generated with pacman -Q)" && exit 1
4
5 tmp=/tmp/__pkgs
6 [ -e $tmp ] && rm $tmp
7
8 echo " * read packages list"
9 pkgs=`cat $1 | gawk '{ print $1 }'`
10 echo " * search packages to install"
11 for pkg in $pkgs; do
12 pacman -Q $pkg >/dev/null 2>&1 || echo $pkg >> $tmp
13 done
14 if [ -e $tmp ]; then
15 echo " * install packages"
16 pkgs=$(cat $tmp)
17 pacman -S $pkgs || exit 1
18 echo " * done"
19 else
20 echo " * nothing todo"
21 fi
Something went wrong with that request. Please try again.