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
- ./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
- Touch ~/.bash_profile
2. Join the path
[HTML]View PlainCopy
- Vim ~/.bash_profile
Add in:
[HTML]View PlainCopy
- 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