473,385 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Installing and uninstalling modules!

Hello Group,

i was wondering how would i uninstall modules so i found a script from the
cpan FAQ i tried that

-> #!/usr/local/bin/perl -w

use ExtUtils::Packlist;
use ExtUtils::Installed;

$ARGV[0] or die "Usage: $0 Module::Name\n";

my $mod = $ARGV[0];

my $inst = ExtUtils::Installed->new();

foreach my $item (sort($inst->files($mod))) {
print "removing $item\n";
unlink $item;
}

my $packfile = $inst->packlist($mod)->packlist_file();
print "removing $packfile\n";
unlink $packfile;

so i used it i did
(raze-on@cantstopspin)-(02:03 PM Fri Aug 19)-(~/programming/perl)
$ ./uninstall_mod.pl
Usage: ./uninstall_mod.pl Module::Name

(raze-on@cantstopspin)-(02:03 PM Fri Aug 19)-(~/programming/perl)
$ perl uninstall_mod.pl HTML-TableExtract
removing /usr/local/lib/perl5/5.6.1/man/man3/HTML::TableExtract.3
removing /usr/local/lib/perl5/site_perl/5.6.1/HTML/TableExtract.pm
removing
/usr/local/lib/perl5/site_perl/5.6.1/mach/auto/HTML-TableExtract/.packlist

it claimed it removed it but when i used the installed module script that i
found on cpan FAQ

(raze-on@cantstopspin)-(02:04 PM Fri Aug 19)-(~/programming/perl)
$ ./installed_mod.pl
Archive::Tar -- 1.10
Bundle::NetSNMP -- ???
CPAN -- 1.76
Compress::Zlib -- 1.33
Digest -- 1.08
Digest::MD5 -- 2.33
File::Spec -- 0.86
HTML-TableExtract -- ???
IO::Zlib -- 1.01
MIME::Base64 -- 3.01
Net -- ???
Net::SSLeay -- 1.25
Net::Telnet -- 3.03
Perl -- 5.6.1
Term::ReadKey -- 2.21
Term::ReadLine -- ???
Test::Harness -- 2.42
Test::Simple -- 0.47
XML::NamespaceSupport -- 1.08
XML::SAX -- 0.12

it showed it was still installed but have a ??? in front anyone know why its
still showing
Aug 19 '05 #1
0 4084

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Jive | last post by:
I just now installed 2.4. I naively copied my site-package from 2.3. The first program I tried to run, which uses the gnuplot package, got this error, complaining about module Numeric: ...
7
by: Edward Diener | last post by:
I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation....
13
by: bjhartin | last post by:
All, I was working at a client's site when I installed Visual Basic 6 on a machine at their request. Existing applications on this machine had specified version 4.0 of the Jet OLEDB provider in...
0
by: forge | last post by:
Installing Merge Modules from C# Windows Form Application (not using a setup and deployment project) Hi, Currently, we have an InstallShield project that creates a setup.exe that only...
1
by: zpinhead | last post by:
I am unable to get my downloaded extension from pecl to link up with php properly. seems like the php.so I could not use pear install http. pear claimed the extension was already installed....
3
by: Christof Nordiek | last post by:
Hi, i have a setup project, wich is configured so that new versions will automatically uninstall in older version. It all works fine, but the installation fails, if the user selects another...
5
by: Cappy2112 | last post by:
I've just started a job which has a massive python2.3.4-centric tools installation and configuration. I know what you're going to say, but I can't upgrade and be the only one with a newer...
5
by: jgelfand | last post by:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) 64-bit machine. Running "./configure --prefix="/ usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but I get the...
2
by: sbettadpur | last post by:
Hiiii > > I have installed mysql , Active perl 5.10 successfully but > Template-GD: ppm install Template-GD > PerlMagick: ppm install PerlMagick > SOAP-Lite: ppm install SOAP-Lite > ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.