Small tips for Mac-Software Installation

Source: Internet
Author: User
Tags install brew install homebrew

Starting from studying the security of iOS apps, I started with a Mac book air. I liked the Mac operating system at once. The user interaction was very friendly, and terminal operations were easy to use, many basic command tools are built in. In general, they are easier to operate than windows terminals and smoother than Ubuntu interfaces. Installing software on the operating system is the most basic operation. The following three installation methods are introduced:


1. Use homebrew to install the application

Step 1: register the apple developer id

 

Step 2: download and install xcode

 

Step 3: download and install Command Line Tools for xcode

Open xcode, select preferences from the xcode menu, click the Downloads panel, find command line tools, and install it. Or https://developer.apple.com/downloads/index.act directlyIon download and Installation

 

Step 4: download and install homebrew

1. Install brew

$ Ruby-e "$ (curl-fsSLk https://gist.github.com/raw/323731/install_homebrew.rb )"

Brew software is stored in/usr/local/Cellar, and/usr/local/bin,/usr/local/sbin, create a link in/usr/local/lib. You may need to add/usr/local/sbin to the search path.

 

 

 

$ Vim~ /. ProFile

Add

PATH = "$ PATH:/usr/local/sbin"

Export PATH

 

 

 

2. Use brew

Verify whether brew is successfully installed.

List brew common commands brew help

Install software brew install package_name

Uninstall software brew uninstall

Search software brew search part_of_package_name, brew search/regular_exprEssion/

Check whether the specified package has been installed with brew list | grep package_home

Download the installation package but do not install brew fetch package_name

View the installation package information brew info package_name

Access the homepage brew home package_name of the specified package

List the content of the installation package brew list package_name

Update the installation package brew upgrade package_name

List all packages installed on the system brew list

Update all installation packages brew update

 

Similar to homebrew, MacPorts Ii. command line installation

Step 1: Check the content of the installation package

View gzip, tar tvzf package.tar.gz | less

View bzip2, tar tvjf package.tar.bz2 | less

Step 2: Decompress the installation package

Tar xvZF package.tar.gz

Tar xvJF package.tar.bz2

Step 3: view the install and readme files

Step 4: Configure

./Configure -- help

./Configure options

Step 5: make

Step 6: sudo make install

  Iii. Installation of mac executable filesDrag the icon to the application folder. 4. Other tips1. Display complete path terminal input on the Finder title bar
 

Defaults write com. apple. finder _ FXShowPosixPathInTitle-bool YES

KillAll Finder

2. Display hidden file terminal input in Mac system
 

 

Defaults write com. apple. finder AppleShowAllFiles-bool trueKillAll Finder

 

3. command + shift + 4 in Mac system

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.