Quantcast
Channel: 钻戒 and 仁豆米
Viewing all articles
Browse latest Browse all 290

Ubuntu中的包管理

$
0
0

其实无论是apt或者是yum,实际中都用的很少,基本是以取源码编译为主。但是,无论apt或者yum的用法,都是需要烂熟在心的。

下面说下Ubuntu的apt包管理:

更新源,并非更新包:

apt-get update  

搜索包:

apt-cache search nginx  

查看包的信息,由上到下显示多个版本,更新时会自动更新到最新的那个

apt-cache show nginx  

更新包,比如更新nginx到最新,注意,更新后会自动重启服务的:

apt-get install nginx  

查看本地都装了什么包:

dpkg -l  

Viewing all articles
Browse latest Browse all 290

Trending Articles