"Go" Mac using Apt-get

Source: Internet
Author: User

Unlike the Linux system, the MAC system is not equipped with the Apt-get package tool by default, so you need to install it yourself if you want to use the handy apt-get on your Mac.

Here we need a powerful tool for-fink.

First we need to download it, click on the right link to download, fink related file download

There are two files, one is Fink, the other is Xquartz, which is X11.

Follow these steps later:

1. Double-click xquartz-2.7.8.dmg to install Fink's front-facing environment X11.

2. After installation, double-click fink-0.39.3.tar.gz to extract the fink-0.39.3 folder to the current directory.

3. Locate the terminal in the fink-0.39.3 directory and enter:

[HTML]View PlainCopy
    1. ./bootstrap

Install Fink, this process is a bit slow, probably lasts about 10 minutes, during the period please make sure the network smooth.

4. After installation, enter Fink at the terminal to view the Fink information.

5. Enter Fink apt in the terminal and install the APT tool. Use the Apt-get tool on your Mac when you're done installing

If you finish the above steps, still hint apt-get can not find, please add Fink path

/sw/bin

Added to the system environment variable.

The methods for modifying system environment variables are as follows:

1. Create a. Bash_profile

[HTML]View PlainCopy
    1. Touch ~/.bash_profile

2. Join the path

[HTML]View PlainCopy
    1. Vim ~/.bash_profile

Add in:

[HTML]View PlainCopy
    1. Export Path=${path}:/sw/bin


3.: Wq Save exit

4. Restart the terminal, enter Apt-get, you can see that you can already use the

"Go" Mac using Apt-get

Related Article

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.