---
title: "Mac上的yum "
author: "Xinaction"
date: "2011-11-21T08:56:43Z"
tags: []
categories: ["操作系统"]
slug: "mac-yum"
draft: false
lastmod: "2011-11-21T08:56:43Z"
id: 1269822
url: "https://xinaction.iteye.com/blog/1269822"
---

没想到mac上面也有这种东西,很好!

到macports上去下载最新的包,安装,默认是安装到/opt/local/bin下面,所以要把这些路径加到 /etc/profile里面去:  
/opt/local/bin和/opt/local/sbin

升级本地库(相当于apt-get update):  
sudo port selfupdate 

搜索索引中的软件   
port search app\_name 

安装新软件   
sudo port install app\_name 

卸载软件   
sudo port uninstall app\_name 

查看outdated的软件以及版本   
port outdated 

升级outdated的软件   
sudo port upgrade outdated