How to install and use the Mac Ports Package.


PRE-FLIGHT:

IN-FLIGHT:

POST-FLIGHT:
  1. I have made two scripts (clamAV-scripts.zip) that will help you learn how to use and update it.
    It is located in my FREE TOOLS area.
  2. OK now that you just installed clamav, to check its version number do, port installed | grep clamav

  3. Wanna see what Apple Mac Viruses it can detect ?


  4. To see ALL the ports you have already installed, type:
    port installed

  5. To update your entire ports collection, just do:
    sudo port -d selfupdate

  6. And to upGRADE just one package you have already installed, like clamav, all you have to do is:
    sudo port upgrade clamav
    Cool Eh ?

  7. And if you are REAL BRAVE and have some extra CPU cycles to spare,
    why not upgrade EVERYTHING THAT IS OLD via,
    sudo port upgrade outdated

  8. Or maybe you want to UNinstall a port, first see if you have more then one copy via,
    port installed |grep clamav
    You might get a few:
    clamav @0.88.1_0
    clamav @0.88.2_0

    Then issue
    sudo port uninstall clamav @0.88.1_0
    , and then
    sudo port uninstall clamav @0.88.2_0

    Now that was not so bad, was it ?

  9. Do not panic if you see more then one copy of a package,
    sometimes the new one does not WORK and you can revert BACK to an OLDER package that works, cool eh.
    - All you need to do is uninstall the bad one and activate the older one that was OK.
    sudo port activate clamav @0.88.2_0
    - You can also DEactivate a ports package too,
    sudo port deactivate clamav @0.88.2_0

  10. If you get a funny error message when you use freshclam for the FIRST time like this:
    ERROR: getfile: Can't create new file /opt/local/share/clamav/clamav-962bdeec86fc85c67281856722282487 in /opt/local/share/clamav - Do not worry, just do this:
    sudo chown -R _clamav:_clamav /opt/local/share/clamav
    ... notice the underScore above ...
    sudo chmod -R 755 /opt/local/share/clamav


NOTES:

And for all you GUI people,


back

© Gary Sullivan Maintainer of this page.
The URL of this page is:
http://www.hackerskitchen.com/mac-old/cvs-how-to.html
Constructive Comments, Suggestions and Requests are welcome.

Hello

Go Home