安装

apt-get install nginx    #安装
apt-get install nginx --reinstall #重新安装

删除

apt-get remove nginx    #卸载
apt-get remove nginx --purge #卸载并删除相关配置文件

更新

apt-get update    #更新apt源
apt-get upgrade #更新已安装的软件包

查询

dpkg -S nginx    #显示包含软件的所有路径
dpkg -L nginx #显示软件所安装的路径
dpkg -l nginx #显示软件的版本信息
apt-cache madison nginx #显示apt源里软件包的所有版本
04-14 09:12