Package management tools under MAC

Source: Internet
Author: User
Tags rabbitmq

1. Mac Port

http://www.macports.org/install.php

2. Description document for MAC port

http://guide.macports.org/

3. The default path for the third-party software download package in Mac port is:/opt/local/var/macports/distfiles/
To increase the speed of installation, you can avoid port downloading by copying files from this directory directly to the same directory as the new Mac port when installing the new port.

4. Before using Mac port, you should first update port's index

$ sudo port selfupdate
Password:
Warning:port definitions is more than-weeks old, consider using selfupdate
Updating the Ports Tree
-Updating macports base sources using rsync
MacPorts base version 1.9.2 installed,
MacPorts base version 1.9.2 downloaded.
-MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
Port upgrade Outdated

5. View the currently available packages and their versions in Mac Port

$ port List
Rabbitmq-server @2.4.0 Net/rabbitmq-server
Apphack @1.1 Aqua/apphack
Appkido @0.985 Aqua/appkido
Aqualess @1.6 aqua/aqualess
Arpspyx @1.1 Aqua/arpspyx
Assignmenttrackerx @2.0beta3.1 Aqua/assignmenttrackerx
Bigsql @1.0 Aqua/bigsql
Biggersql @1.3.9 Aqua/biggersql
Books @3.2.5c Aqua/books
......

4. How do I search for software packages that need to be installed on Mac Port?

$ Port Search Maven
Maven @1.0.2 (Java, devel)
A java-based Build and project management environment.

Maven-ant-tasks @2.0.10 (Devel, Java)
Use many of Maven's artifact handling features from Ant.

Maven2 @2.2.1 (Java, devel)
A java-based Build and project management environment.

Maven3 @3.0.3 (Java, devel)
A java-based Build and project management environment.

Maven_select @0.3 (sysutils)
Switch The default Maven Java build tool

Found 5 ports.

5. After searching for a package that needs to be installed, how do I see the content and description of the specific package?

$ Port Info maven2
Maven2 @2.2.1, Revision 3 (Java, devel)

Description:maven is a Java project management and project comprehension tool. Maven is based on the concept of a
Project object Model (POM) in the, the artifacts produced by Maven is a result of consulting a
Well defined model for your project. Builds, documentation, source metrics, and source cross-references
Is all controlled by your POM. MAVEN 2.0 are a complete rewrite of MAVEN 1.0 and as such are better
Organized, faster and easier to use.
homepage:http://maven.apache.org/

Build Dependencies:kaffe
Library Dependencies:maven_select
Platforms:darwin
License:unknown
maintainers: [Email protected], [email protected]

6. View dependencies for a package that is about to be installed or installed

$ Port Deps Maven2
Full Name:maven2 @2.2.1_3
Build Dependencies:kaffe
Library Dependencies:maven_select

7. View the parameters that allow customer customization during installation

$ Port Variants Maven2
MAVEN2 has no variants

8. Review the contents and description of the package and confirm that you are sure to install it.
Reference

$ sudo port install Maven2

9. After the installation is complete, clear the temporary files that are generated during installation

$ sudo port clean–all maven2
Cleaning Maven2

10. Uninstall the software already installed with Mac Port
Reference

sudo port uninstall Maven2

Imagemagic:

sudo port install ImageMagick

Modify sudo perl makefile.pl

Otherwise, imagemagic dependent libraries cannot find sudo makesudo make install

Package management tools under MAC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.