LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   upgrading and uninstalling software (https://www.linuxquestions.org/questions/linux-software-2/upgrading-and-uninstalling-software-119260/)

mijohnst 11-23-2003 04:24 PM

upgrading and uninstalling software
 
I have a few simple questions I hope that someone can answer.

1. How would I go about upgrading a program like perl. I kind of messed up by trying to upgrade Perl 5.8.0 to 5.8.2. I thought doing the 'configure,make,make install' would upgrade my older version, but instead, it installed a second version.

2. Is there a way to uninstall software from the commandline? I'd like something that I could reverse the 'make install' process. Is that what 'make clean' is for?

I'm sorry, I know these are newbie questions... :(

Mike

david_ross 11-23-2003 04:26 PM

Most of the time you will need a package manager to upgrade software. When compiling you usually just install a new version to a different directory.

To uninstall a source package usually:
make uninstall

fancypiper 11-23-2003 04:27 PM

You might want to check out CheckInstall to manage source code installations/uninstallation

mijohnst 11-23-2003 07:22 PM

Hum...Maybe I should ask how I can get rid of the old version? My problem is that I'm trying to use Net::SNMP but everytime I run that script that needs it says that it's not installed. I get this output:

[root@LINUX1 libexec]# ./check_netapp.pl -H filer
> Can't locate Net/SNMP.pm in @INC (@INC contains:
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
> /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0) at
> ./check_netapp.pl line 43.
> BEGIN failed--compilation aborted at ./check_netapp.pl line 43.



I know that it is installed though because when i do this:

> cpan> install Net::SNMP
> Net::SNMP is up to date.

How to I uninstall the orginal version, upgrade it or point cpan to the newly installed version? Thanks again!

Mike

mijohnst 11-24-2003 12:50 AM

bump


All times are GMT -5. The time now is 06:57 AM.