3 pacman
-Qi >.
/all_files
6 echo -e "\033[0;37mNo repo given!"
7 echo " usage: scriptname reponame"
12 pacman
-Sl $reponame >.
/$list
13 sed -i "s|\$reponame |g|" .
/$list
14 repo
=`cat ./$list | cut --fields 2 --delim " "`
17 if [[ $
(cat .
/all_files |
grep -w "$pkg") ]] ; then
18 echo -e "\033[0;34m$pkg\033[0;37m is installed"
19 echo "$pkg" >>.
/installed_files
20 elif [ "$2" == "all" ] ; then
21 echo -e "\033[0;31m$pkg\033[0;37m is NOT installed"
26 echo -n "Would you like to save the names of these pkgs to a file? (Y/n) "
28 if [ "$choice" == "Y" -o "$choice" == "y" ] ; then
29 echo "Currently in `pwd`"
32 if [ -z $filename ] ; then
33 echo "No name given saved as ./installed_files_$reponame"
34 cp -u .
/installed_files .
/installed_files_
$reponame
36 cp -u .
/installed_files
$filename
42 rm .
/$list .
/all_files