-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
42 lines (32 loc) · 915 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
This script scans the installed packages in macports and
uninstalls them if they do not have any dependents and
is not in the "world" file provided.
syntax:
$ port_purge [WORLD_FILE]
TODO: [OPTIONS] is used when executing port uninstall
[WORLD_FILE] is list of packages that should be excluded
This code is in public domain.
Author: Timothy Kim ([email protected])
Example Usage:
$ port_purge
Searching for installed packages with no dependents...
- autoconf
- git-core
- lame
- wget
Found 12 packages.
> Would you like to uninstall found packages? (y/[n]) : n
$ cat world
git-core
lame
wget
$ port_purge world
- autoconf
Found 3 packages.
> Would you like to uninstall found packages? (y/[n]) : y
---> Deactivating autoconf @2.63_0
---> Uninstalling autoconf @2.63_0
> Would you like to scan again? ([y]/n) : y
Searching for installed packages with no dependents...
No packages found.
$