aboutsummaryrefslogtreecommitdiffstats
path: root/FAQ
diff options
context:
space:
mode:
authorJason Woodward2004-05-27 21:52:25 +0000
committerJason Woodward2004-05-27 21:52:25 +0000
commit6917c3c819a7b98835adc840b28be389e12c8f9d (patch)
treeed7e859037d62e411d680aeace1e7d5a8ad247fe /FAQ
parent8dedcbb65411c540fb0998724ed08c96ecb1227e (diff)
downloadslapt-get-6917c3c819a7b98835adc840b28be389e12c8f9d.tar.gz
added FAQ concerning removing depreciated packages
Diffstat (limited to 'FAQ')
-rw-r--r--FAQ27
1 files changed, 27 insertions, 0 deletions
diff --git a/FAQ b/FAQ
index e3c0251..d7e29ad 100644
--- a/FAQ
+++ b/FAQ
@@ -40,6 +40,7 @@ Frequenty Asked Questions:
39. What about extra or testing packages?
40. Can I use slapt-get to mirror packages?
41. Is there a way to use tab completion for the package names in Bash?
+42. How do I remove depreciated packages?
@@ -784,3 +785,29 @@ Frequenty Asked Questions:
complete -F complete_slaptget -o default slapt-get
+42. How do I remove depreciated packages?
+
+ If you are tracking current or are dist-upgrading to a new release, you will
+ encounter packages that you have installed that are no longer required or
+ part of the basic slackware install. If you only have the official slackware
+ package sources in your slapt-getrc file, then you can use the following
+ as either a command or a script to remove those depreciated packages:
+
+ for pkg in `slapt-get --installed|awk '{print $1}'`;do if [ -z "`slapt-get --search ${pkg}`" ]; then slapt-get --remove ${pkg};fi;done
+
+ or as a script:
+
+ #!/bin/sh
+ # this script uses slapt-get to remove depreciated packages
+ # slapt-getrc must only have official package sources for the
+ # current release you are tracking
+ for pkg in `./slapt-get --installed|awk '{print $1}'`
+ do
+ if [ -z "`./slapt-get --search ${pkg}`" ]
+ then
+ echo ./slapt-get --remove ${pkg}
+ fi
+ done
+
+
+