14.4. Installing Binaries

 < Day Day Up > 

14.3. DarwinPorts Maintenance

How you update your DarwinPorts installation is dependent on how you installed it. If you've installed a stable point release of DarwinPorts, all you need to do is to enter the following command:

          sudo port selfupdate 

If, on the other hand, you're working with CVS-development releases of DarwinPorts, and you've maintained your ~/darwinports directory, you can update your DarwinPorts installation in two steps. The first step is to update the DarwinPorts infrastructure, while the second step is to update your collection of Portfiles, which contain instructions for building ports.

To update your DarwinPorts infrastructure in ~/darwinports, change to the ~/darwinports/base directory and enter the following commands:

     $ cvs -z3 update -dP     $ ./configure     $ make clean && make     $ sudo make install 

This sequence of commands updates your port command and associated libraries.

To update your Portfiles, change to the ~/darwinports/dports directory and enter the command:

     $ cvs -z3 update -dP 

After this command has completed its work, you should enter the command to build the index of available ports:

     $ portindex 

     < Day Day Up > 

    Mac OS X Tiger for Unix Geeks
    Mac OS X Tiger for Unix Geeks
    ISBN: 0596009127
    EAN: 2147483647
    Year: 2006
    Pages: 176

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net