|
|
A bash script to automate DarwinPorts upgrades
`man port`
A bash script to automate DarwinPorts upgrades
Why not just add '-f'?
A bash script to automate DarwinPorts upgrades
-u doesn't force an un-install when dependencies are present. If a port is dependent upon the old version you'll get an error-message that port was unable to un-install the old version along with a list of the ports that are dependent upon the old version and a suggestion to un-install these.
The only way I'm at present aware that my script can mess up is if a dependency isn't found, but that won't break your DarwonPort installation - you'll just have to do some manual work to fix the situation.
A bash script to automate DarwinPorts upgrades
If you don't use the -u option the old versions will be kept and used by the ports that are dependent upon them. Thus, if you want all of the ports to use the newest version of a port you'll have to use -u and un-install.
You could try to use the -f option, but that's fraught with danger and not at all recommended by the DarwinPorts team. I've had to re-install my whole DarwinPorts structure because of excessive use of -f. For instance, if you are linking to the MySQL libraries, these change names between versions, so if you have compiled support for MySQL into eg PHP and Postfix, you'll have to recompile these from scratch in order to get the new libraries installed. Otherwise, the programs simply cease to function.
A bash script to automate DarwinPorts upgrades
I've been upgrading ports with "sudo port -vuf upgrade portname" for months now with no problem. So far no big dependency issues either... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|