Scenario where you want to understand what is actually installed and what is on the other hand truly Well, before we come to the procedure of defining your requested ports, let's have a look at a typical After installation, run it with $ sudo port_cutleavesģ.3.7. Keep Your Installation Lean by Defining Leaves as Requested Ports To go through this process interactively so you can make sure you're not uninstalling anything you want to keep, To uninstall all leaves, you can use the rleaves pseudo-port instead. Note that the uninstallation can cause new ports to become leaves. YouĬan uninstall all leaves using $ sudo port uninstall leaves See Section 3.3.7, “Keep Your Installation Lean by Defining Leaves as Requested Ports” to find out how to mark some of the leaves as requested. Git-flow leaves may be wanted, but are in most cases unneeded. Pseudo-port, for example in conjunction with the echo or installed Ports that have not been manually installed ( “ requested”) and do not have anyĭependents are called “ leaves” and can be identified using the leaves To uninstall all inactive ports but a single one, you can use the following shortcut: $ sudo port uninstall inactive and not portnameĪfter a while of using MacPorts, installing and uninstalling ports, packages that have beenĪutomatically installed as dependencies for other ports are left behind, even though they are no longer Version: $ sudo port uninstall HexFiend Password: Of course you could also select only a specific inactive port, but that requires to specify the exact > Uninstalling p5.16-ipc-run Cleaning p5.16-ipc-run > Uninstalling p5.16-class-methodmaker Cleaning p5.16-class-methodmaker > Uninstalling HexFiend Cleaning HexFiend > Uninstalling gpg-agent Cleaning gpg-agent > Uninstalling p5.16-gnupg-interface Cleaning p5.16-gnupg-interface To remove all of them at once, run $ sudo port uninstall inactive Password: Gnupg the list for any ports you might still want to keep. The following ports are currently installed: To get a list of inactive ports you likely no longer need. Space, you should periodically uninstall any old versions you no longer need. To ensure you can go back to a working and tested version in case an update goes wrong. Or it might only have been upgraded at all to be rebuilt against the updated dependency, in which caseĪvoiding the update of the dependency defeats the purpose of the reinstallation.ģ.3.4. Removing Inactive Version(s) of Upgraded Port(s)īy default, upgrading ports in MacPorts does not remove the older versions. Problems later on – the new version of the port you want to upgrade might require the newer dependency, Do not try to avoid this, as it will very likely lead to SoĮven if you request the update of a single port only, other ports may be upgraded first because they are Note that MacPorts will upgrade any dependencies of a port first before updating the port itself. > Installing makedepend Deactivating makedepend Activating makedepend Cleaning makedepend > Attempting to fetch makedepend-1.0.3.tar.bz2 from Replace “ outdated” in the command given above with the port's name: $ sudo port upgrade makedepend Password: In case you want to upgrade only a specific port (not recommended unless you know what you are doing), If MacPorts has not already reinstalled them, you can now reinstall any of the ports removed in step 1, if desired.To upgrade all your installed and outdated ports, run $ sudo port upgrade outdated Sudo port -f uninstall installed and ( gawk grep gsed perl5 perl5.8 perl5.10 ) Uninstall the gawk, grep, and gsed ports (if installed), as many build systems will try to use them even if there is no dependency: Īs of MacPorts 1.8.0, you can alternatively try an automated rebuild of all installed ports for your new platform using these steps: Sudo port install portname +variant1 +variant2. Sudo port clean installed sudo port -f uninstall installedīrowse myports.txt and install the ports that you actually want to use (as opposed to those that are only needed as dependencies) one by one, remembering to specify the appropriate variants: Clean any partially completed builds, and uninstall all installed ports:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |