Thursday, August 5, 2010

How to uninstall applications on Linux

quote:
It depends on which distribution you are using.

1) For (*.rpm) based distributions like Redhat, Fedora Core, SUSE, Madrake, etc, use this to get the exact program name first because, the program name is not exactly same as the the rpm file name.

rpm -qa | grep programname

Then use this to remove it.

rpm -e programname

2) For (*.deb) based distributins like Debian, Ubuntu, Mepis, etc,  to remove the program but, keep the configuration files for the program, use this

dpkg -r programname

To remove everything including configuration files, use this

dpkg -P programname

3) For (*.tgz) based distribtion like Slackware, use

pkgtool

and select the package which you wish to remove. There are more options available for Slackware which I don't remember right now. Hope this helps.

No comments:

Post a Comment