Which command-line packages do you need?
I frequently reinstall MacPorts (e.g., when there's a new major version of Xcode) so I keep a file with a list of my essential ports for easy reinstalling.

Here's my list of essential software that doesn't come with OS X.


arping
dnstracer
watch
wireshark
figlet
gnupg
ipcalc
lynx +ssl
minicom
mtr
ncftp
nmap
pstree
pwgen
p0f
sipcalc
ssldump
stunnel
tcpflow
unrar
w3m
wget
wordplay
fortune
cowsay
ack