---
title: "Ubuntu Linux常用安装卸载命令"
date: 2009-03-26T11:18:03.000Z
tags: ["ubuntu"]
categories: ["技术"]
canonical: https://www.zhaojian.net/ubuntu-linux-install-upgrade-clear-cache-common-command/
author: 赵健
---

安装软件
```
apt-get install softname1 softname2 softname3……
```

卸载软件 
```
apt-get remove softname1 softname2 softname3……
```

卸载并清除配置 
```
apt-get remove --purge softname1
```

更新软件信息数据库 
```
apt-get update
```

进行系统升级 
```
apt-get upgrade
```

搜索软件包 
```
apt-cache search softname1 softname2 softname3……
```


安装deb软件包 
```
dpkg -i xxx.deb
```

删除软件包 
```
dpkg -r xxx.deb
```

连同配置文件一起删除 
```
dpkg -r --purge xxx.deb
```

查看软件包信息 
```
dpkg -info xxx.deb
```

查看文件拷贝详情
```
dpkg -L xxx.deb
```

查看系统中已安装软件包信息
```
dpkg -l
```

重新配置软件包 
```
dpkg-reconfigure xxx
```