It's not a great practice to update just 1 port. It may have dependencies sometimes in surprising categories. Your whole work may be not just useless but destructive and then you may post weird error messages nobody can understand. Updating all the tree takes a few minutes and a few MB on disk, why not update everything? I'm doing it daily some others put this task on
cron that is more professional but I enjoy updating.
How portaudit knows that something is not quite secure? Because a dev put the info in db after some other devs discovered and confirmed the vulnerability. Well I know that my car is broken but I must bring it to a mechanic to fix. It takes time. Same here. I wouldn't be surprised if tomorrow you update your ports again and this time you get new improved version. Perhaps not tomorrow but 2-3 days later but do you really believe that somebody will hack exactly your box with all your top secrets in these 2-3 days? Do you also believe that
portaudit is so genious that "knows" ALL the vulnerabilities?
Back to libtool. I'm opening a terminal and type:
Code:
$ ls /var/db/pkg |grep libtool
libtool-2.2.6b
Looks like I got rid of problematic "a" version without even knowing that it's problematic (thanks devs! oh, thanks a lot!).
I use
portsnap to update my port tree. Some others use
csup. What is the difference? Csup pulls DELTAS from online port tree, please note: not all from scratch again but only differences if any. That's great but sometimes if you are not lucky you may get a "snapshot-of-your-own" that is incomplete: something already updated but some important depend will be committed in 2 sec after you already got you "snapshot" as is.
Portsnap searches for latest snapshot done professionally without such a 2 sec surprises. Yes, it's 1-2 hour older that what you can get with csup but it's complete. Another good news is that portsnap also pulls only deltas and not everything from scratch. Why
DD called it "preferred"? Because it's complete and fast. In 10 sec you can update your entire port tree, that's what you want, don't you?
Both csup and portsnap create their own INDEX-N file (where N is FreeBSD branch number, INDEX-8 for instance). If you use csup and then portsnap you may have some problems, tell us if you already did so.
I didn't work with portmanager but portmaster and portupgrade look in that INDEX file instead of looking for something online.
So if you have outdated port tree those great tools will show you what you have in that outdated INDEX.
Update your port tree, get new INDEX and run
# pkg_version -vIL= you will be given all your ports to be updated with old version and new version each. Then you may want to run
# portupgrade -a and sit on back (not quite smart) or analyze the list given and choose what to update first for example
libtool 
Summary:
Code:
# portsnap fetch update ## note1
# pkg_version -vIL= ## note2
# portupgrade -a ## note3
note1: if you use
portsnap for the first time run
# portsnap fetch extract yes, this first time it'll take a while
note2: you may want to run
# pkg_version -v to see all your ports including up-to-date ones.
note3: explained above.
PS. For sure all of that is from Handbook that also has links to manpages although you can invoke a manpage by running
man <command> for example
man portsnap or
man portupgrade.