debian软件安装和卸载

用root身份执行如下命令:

dpkg -l |grep "^rc"|awk '{print $2}' |xargs aptitude -y purge

dpkg是Debian Package的简写

推荐使用aptitude代替apt-get来进行安装。

NOTE: To manage software, the user must be logged in as Root or use Root privileges via sudo or su.
Apt is equivalent to Yum on RedHat-based systems;
apt is to Debian as yum is to RedHat.
Apt is commonly used to download software from repositories.
Repositories are special servers that store installation packages for operating systems.
apt-get install firefox, Download firefox from a repository and install the software.
apt-get remove firefox, Keep configuration files.
apt-get purge firefox, Remove everything.
apt-get upgrade, Apt is used to download and apply updates to the local software.
apt-get dist-upgrade, To apply updates that require other packages in the newer version.

你可能感兴趣的:(Debian)