How to uninstall software package on Ubuntu Debian

How to uninstall software package on Ubuntu Debian

ubuntu

1. Uninstall package by dpkg

dpkg –remove packagename

root@ubuntu:~# dpkg –remove apache2
(Reading database … 159623 files and directories currently installed.)
Removing apache2 …
root@ubuntu:~#

2. Uninstall package by apt-get command

apt-get remove packagename

root@ubuntu:~# apt-get remove apache2
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
apache2-mpm-worker apache2-utils apache2.2-common
Use ‘apt-get autoremove’ to remove them.
The following packages will be REMOVED:
apache2
0 upgraded, 0 newly installed, 1 to remove and 153 not upgraded.
After this operation, 29.7 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database … 159623 files and directories currently installed.)
Removing apache2 …
root@ubuntu:~#

Thanks for using IThelpblog.com.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>