How to uninstall software package on CentOS Redhat RHEL Fedora

How to uninstall software package on CentOS Redhat RHEL Fedora





1. Use RPM to uninstall software package on CentOS

rpm -ev packagename

[root@localhost ~]# rpm -ev webmin-1.620-1.noarch
Running uninstall scripts ..
Subroutine list_servers redefined at /usr/libexec/webmin/servers/ line 92.
Subroutine list_servers_sorted redefined at /usr/libexec/webmin/servers/ line 111.
Subroutine get_server redefined at /usr/libexec/webmin/servers/ line 143.
Subroutine save_server redefined at /usr/libexec/webmin/servers/ line 158.
Subroutine delete_server redefined at /usr/libexec/webmin/servers/ line 175.
Subroutine can_use_server redefined at /usr/libexec/webmin/servers/ line 188.
Subroutine list_all_groups redefined at /usr/libexec/webmin/servers/ line 208.
Subroutine logged_in redefined at /usr/libexec/webmin/servers/ line 278.
Subroutine get_server_types redefined at /usr/libexec/webmin/servers/ line 303.
Subroutine this_server redefined at /usr/libexec/webmin/servers/ line 313.
Subroutine get_my_address redefined at /usr/libexec/webmin/servers/ line 332.
Subroutine address_to_broadcast redefined at /usr/libexec/webmin/servers/ line 361.
Subroutine test_server redefined at /usr/libexec/webmin/servers/ line 375.
Subroutine find_cron_job redefined at /usr/libexec/webmin/servers/ line 394.
Subroutine find_servers redefined at /usr/libexec/webmin/servers/ line 407.
[root@localhost ~]#

2. Use Yum to Uninstall software

yum erase packagename

[root@localhost ~]# yum erase httpd
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Remove Process
Resolving Dependencies
–> Running transaction check
—> Package httpd.x86_64 0:2.2.15-29.el6.centos will be erased
–> Processing Dependency: httpd-mmn = 20051115 for package: php-5.3.3-23.el6_4.x86_64
–> Processing Dependency: httpd >= 2.2.0 for package: gnome-user-share-2.28.2-3.el6.x86_64
–> Processing Dependency: httpd for package: phpMyAdmin-
–> Running transaction check
—> Package gnome-user-share.x86_64 0:2.28.2-3.el6 will be erased
—> Package php.x86_64 0:5.3.3-23.el6_4 will be erased
—> Package phpMyAdmin.noarch 0: will be erased
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
httpd x86_64 2.2.15-29.el6.centos @updates 2.9 M
Removing for dependencies:
gnome-user-share x86_64 2.28.2-3.el6 @anaconda-CentOS-201303020151.x86_64/6.4 1.1 M
php x86_64 5.3.3-23.el6_4 @updates 3.5 M
phpMyAdmin noarch @epel 18 MTransaction Summary
Remove 4 Package(s)Installed size: 25 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Erasing : phpMyAdmin- 1/4
warning: /etc/httpd/conf.d/phpMyAdmin.conf saved as /etc/httpd/conf.d/phpMyAdmin.conf.rpmsave
Erasing : php-5.3.3-23.el6_4.x86_64 2/4
Erasing : gnome-user-share-2.28.2-3.el6.x86_64 3/4
Erasing : httpd-2.2.15-29.el6.centos.x86_64 4/4
Verifying : phpMyAdmin- 1/4
Verifying : httpd-2.2.15-29.el6.centos.x86_64 2/4
Verifying : gnome-user-share-2.28.2-3.el6.x86_64 3/4
Verifying : php-5.3.3-23.el6_4.x86_64 4/4

httpd.x86_64 0:2.2.15-29.el6.centos

Dependency Removed:
gnome-user-share.x86_64 0:2.28.2-3.el6 php.x86_64 0:5.3.3-23.el6_4 phpMyAdmin.noarch 0:

[root@localhost ~]#

Thanks for using

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>