https://github.com/conormcd/portdiff
Finds the difference between a list of ports that you want to have on your FreeBSD system and the list of ports currently installed.
https://github.com/conormcd/portdiff
Last synced: 8 months ago
JSON representation
Finds the difference between a list of ports that you want to have on your FreeBSD system and the list of ports currently installed.
- Host: GitHub
- URL: https://github.com/conormcd/portdiff
- Owner: conormcd
- Created: 2010-12-21T10:07:40.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2012-06-26T11:25:24.000Z (almost 14 years ago)
- Last Synced: 2025-10-09T19:33:22.413Z (8 months ago)
- Language: Perl
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Finds the difference between a list of ports that you want to
have on your system and the list of ports currently installed.
When called as portdiff, it produces diff(1)-like output, when
called as portorphans it prints a list of ports that are installed
but are not in your list of wanted ports.
To create your list of wanted ports, do something like:
$ portorphans | perl -pe 's/-\d.*$//' > ~/.portdiffrc
then edit the .portdiffrc file to remove the ports you don't want.
My usual port maintenance routine goes something like:
1) portupgrade -a
2) portorphans
a) If portorphans returns nothing, I'm done
b) If portorphans' output contains a port I wish to keep,
I add that to ~/.portdiffrc and goto 2.
c) If portorphans returns some output, I run
'portorphans | xargs pkg_delete' and goto 2.
This keeps the list of ports installed on my machine to a minimum.