V vadimkolchev Sep 30, 2012 #1 Hi all, I know that I can list all installed ports using pkg_info, but how can I list the number of installed ports?
Hi all, I know that I can list all installed ports using pkg_info, but how can I list the number of installed ports?
wblock@ Developer Oct 1, 2012 #7 If you want a quick scripting project, explain why that count is wrong and how to fix it.
OP V vadimkolchev Oct 1, 2012 Thread Starter #8 Sorry, you got me wrong. I just meant that I already done exactly that and succeeded. So the expression pkg_info | wc - l did the trick for me.
Sorry, you got me wrong. I just meant that I already done exactly that and succeeded. So the expression pkg_info | wc - l did the trick for me.
wblock@ Developer Oct 1, 2012 #9 Sorry, I was thinking pkg_info(1) showed some headers that would make the count incorrect. But it does not, so never mind.
Sorry, I was thinking pkg_info(1) showed some headers that would make the count incorrect. But it does not, so never mind.