LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-22-2017, 03:55 AM   #1
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Slackware -current: remove and reload all Perl?


Through my own idiocy and some needless experiments with cpan I have made a mess of my Perl installation.

Is there a clean way to completely remove the stock Perl under -current as well all extra installed modules and then importantly make a completely clean Perl reinstallation?

Edit: Hmmm... looks like it is actually one Slackbuild in the d - series. So perhaps remove and reinstall this, delete all the .cpan directories and fish the installed Perl modules from /usr/local.....

Last edited by andrew.46; 01-22-2017 at 03:59 AM.
 
Old 01-22-2017, 08:30 AM   #2
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Hoo Boy ...

Edit: Oops, this is not the thread I was think about !

But before you uninstall perl and the official Slackware Perl Modules, there may be a way to clean out the CPAN Modules you've installed ...

End Edit.

There are a zillion Qs in google about uninstalling CPAN Modules and it seems that there's nothing available to uninstall Perl Modules installed via the CPAN Shell ( it's a roach motel ).

And I've seen a few Qs here on the same subject and I've made a mess on each of my four previous Slackware-Based Development Systems so decided I needed to do something so that I can track and hopefully upgrade and remove CPAN Modules.

I've been using the SBo Packages: perl-CPANPLUS and perl-CPANPLUS-Dist-Slackware for a while now and the testing I've done indicate that I will be able to upgrade and remove the Packages I've installed this way.

There are a lot of dependencies for perl-CPANPLUS and perl-CPANPLUS-Dist-Slackware but as far as I can tell they will go a long way to avoid the messes I used to make on my systems when I used the CPAN shell ( not to mention the perl Modules that I had to download ; extract ; perl Makefile.PL && make && make test && make install ).

However, before I 'saw the light' I did install a number of CPAN Modules on my latest System via good ole: `perl -MCPAN -eshell`

Anyhow ... enough with the free advertising ... What do you see in your $HOME/.cpan/build/ directory ?

I've got a directory for each CPAN perl Module I installed via the CPANPLUS.SlackBuild as well as the older ones I installed directly via the CPAN shell.

Anyhow, for each CPAN Module, there is either a Makefile or a Build file ( and sometimes both ).

The Makefiles I've inspected each has an uninstall target.

Not so with the Build files

You MIGHT be able to do something like `make uninstall` for each of the CPAN Modules with Makefiles and then figure something out for the ( nasty ) Build files ???

HTH and good luck !

-- kjh

Last edited by kjhambrick; 01-22-2017 at 08:36 AM.
 
2 members found this post helpful.
Old 01-23-2017, 01:24 AM   #3
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Original Poster
Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
Thanks kjhambrick for your answer. To tell you the truth I used the 'scorched earth' policy and:
  1. Eliminated every vestige of Perl from my setup
  2. Reloaded the base Perl from my -current local tree
  3. Used cpan2tgz to install my required modules

This whole effort to more easily get MusicBrainz support for abcde .

Last edited by andrew.46; 01-23-2017 at 01:28 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backuppc on stock Slackware 64 current - missing Perl modules? Gerard Lally Slackware 4 08-04-2014 10:59 AM
Remove/reload Linux process with STAT D+ alok.rhct Programming 0 04-02-2009 01:49 AM
must remove drivers and then reload them for soundcard jdblick SUSE / openSUSE 0 11-05-2004 10:09 PM
Slackware-current Perl 5.8.1 Package tuxq Slackware 0 10-24-2003 07:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration