apt-get update 更新索引

1
apt-get update

apt-get upgrade 更新软件

1
apt-get upgrade

apt-get dist-upgrade 升级

1
apt-get dist-upgrade

apt-get clean 删除缓存包

1
apt-get clean

apt-get autoclean 删除未安装的 deb 包

1
apt-get autoclean