Linux command + shell script collection: Uninstall software with aptitude

Recommended free tutorials: Python, C++, Java, JS, Rust, Go Language Introduction Complete Manual (6 in 1).zip-Python Documentation Resources-CSDN Download

Uninstalling packages with aptitude is as easy as installing and updating them. The only choice you have to make is whether to keep
software data and configuration files.
To remove only the software package without deleting the data and configuration files, you can use the remove option of aptitude. To delete software
packages and associated data and configuration files, use the purge option.
 

$ sudo aptitude purge wine
[sudo] password for user:
The following packages will be REMOVED:
cabextract{u} esound-clients{u} esound-common{u} gnome-exe-thumbnailer
{u}
icoutils{u} imagemagick{u} libaudio2{u} libaudiofile0{u} libcdt4{u}
libesd0{u} libgraph4{u} libgvc5{u} libilmbase6{u} libmagickcore3-extra
{u}
libmpg123-0{u} libnetpbm10{u} libopenal1{u} libopenexr6{u}
libpathplan4{u} libxdot4{u} netpbm{u} ttf-mscorefonts-installer{u}
ttf-symbol-replacement{u} winbind{u} wine{p} wine1.2{u} wine1.2-gecko
{u}
0 packages upgraded, 0 newly installed, 27 to remove and 6 not upgraded.
Need to get 0B of archives. After unpacking 121MB will be freed.
Do you want to continue? [Y/n/?] Y
(Reading database ... 120968 files and directories currently installed.)
Removing ttf-mscorefonts-installer ...
[...]
Processing triggers for fontconfig ...
Processing triggers for ureadahead ...
Processing triggers for python-support ...
$


To see if a package has been removed, use aptitude's search option again.
If you see a c in front of the package name , it means that the software has been removed, but the configuration files have not been purged from the system; if it is preceded by a p, the configuration files have also been removed.

Recommended free tutorials: Python, C++, Java, JS, Rust, Go Language Introduction Complete Manual (6 in 1).zip-Python Documentation Resources-CSDN Download

Guess you like

Origin blog.csdn.net/tysonchiu/article/details/125873689