aboutsummaryrefslogtreecommitdiffstats
path: root/FAQ
diff options
context:
space:
mode:
authorJason Woodward2004-01-10 18:10:51 +0000
committerJason Woodward2004-01-10 18:10:51 +0000
commit21a1c7f2fb23d5222c54f609b2f90fa9cf1d1f5f (patch)
treea74615d59792057870fca29e5d69559264703031 /FAQ
parent425498afde5b263d28cbe333bf19894d090e95b3 (diff)
downloadslapt-get-21a1c7f2fb23d5222c54f609b2f90fa9cf1d1f5f.tar.gz
updated FAQ 13, simplified install every package not currently installed script
Diffstat (limited to 'FAQ')
-rw-r--r--FAQ23
1 files changed, 3 insertions, 20 deletions
diff --git a/FAQ b/FAQ
index 69f8405..a8e3054 100644
--- a/FAQ
+++ b/FAQ
@@ -244,27 +244,10 @@ Frequenty Asked Questions:
13. How can I install every available package?
Even though it's not built in, it's simple since slapt-get is easy to script
- with. Here is a simple shell script to install every package that is
- available but not currently installed:
-
- #!/bin/sh
- # Dan Barber <danb at mojolin dot com>
- slapt-get --update
- slapt-get --installed > /tmp/slapt_get_installed
- for file in `slapt-get --list | cut -f1 -d" " | sort`
- do
- echo -n "$file "
- if [ -z "`grep "\W+$file\W+" /tmp/slapt_get_installed`" ]; then
- if [ -z "`grep '\W+$file\W?' /etc/slapt-getrc`" ]; then
- echo "excluded"
- else
- echo "not installed"
- slapt-get --install $file
- fi
- fi
- done
-
+ with. Here is a shell command to install every package that is available
+ but not currently installed:
+ slapt-get --list|grep inst=no|awk '{print $1}'|sort|uniq|xargs -r slapt-get --install
14. What if I only want to upgrade one package?