LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to uninstall a path variable and a software package in linux open suse 11.1 (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-uninstall-a-path-variable-and-a-software-package-in-linux-open-suse-11-1-a-749464/)

sonu kumar 08-22-2009 01:25 AM

how to uninstall a path variable and a software package in linux open suse 11.1
 
hi dear all.

I want to know--- how to uninstall
1)path variable in linux
2)software package in linux open suse 11.1.

thanks in advance

sonu

micxz 08-22-2009 01:43 AM

Quote:

Originally Posted by sonu kumar (Post 3653258)
hi dear all.

I want to know--- how to uninstall
1)path variable in linux
2)software package in linux open suse 11.1.

thanks in advance

sonu

Welcome to LQ

1. variables are not uninstalled they are unset or set to null (nothing). I don't suggest you set you path to null or unset it as you will not be able to run any commands or programs as the shell looks for them in $PATH.

Here's some more info on that:
http://www.faqs.org/docs/Linux-mini/Path.html

2. openSuSE is rpm based so you can uninstall rpm packages with rpm. I suggest you use yast2 as it also will allow you to easily add and remove programs.

knudfl 08-22-2009 02:19 AM

... And the command line counterpart of 'Yeast2' :
# zypper re <package>
see 'man zypper'
and http://en.opensuse.org/Zypper/Usage
http://manpages.unixforum.co.uk/man-...-man-page.html

Packages installed with # 'make install' :
'make uninstall' from the source directory, if available.
Keep a record of the install by 'copy / paste' the text
from the 'make install' shell to a text file or use a
tool like checkinstall to create an rpm package, which
can be removed with # 'zypper re'

An extra PATH or an LD_LIBRARY_PATH entry does no harm,
if the directory in question doesn't exist any more.
Unset with care if at all, ref. @micxz, post # 2.
.....

micxz 08-22-2009 02:23 AM

Quote:

Originally Posted by knudfl (Post 3653287)
checkinstall to create an rpm package, which
can removed with # 'zypper re'

Cool. I did not know this'


All times are GMT -5. The time now is 03:29 PM.