Forum Moderators: coopster & phranque

Message Too Old, No Replies

How can do you tell what "packages" are on server

         

Acternaweb

1:32 pm on Aug 31, 2001 (gmt 0)

10+ Year Member



How can you tell what "packages" are on a given server. For example I have a script that requires Perl package "GD"

Thanks,

evinrude

4:37 pm on Aug 31, 2001 (gmt 0)

10+ Year Member



If on a system that uses RPM, you can query installed packages by typing rpm --query packagename

For example: rpm --query gd would let you know if GD is installed via rpm.

Acternaweb

12:43 pm on Sep 4, 2001 (gmt 0)

10+ Year Member



Ok, now for the next question. How can I tell if my system uses RMP. I have asked my ISP but they have not gotten back to me. I can only upload to my site via ftp and not telneting.

Thanks a lot

sugarkane

12:57 pm on Sep 4, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm sure I came across a script once that will give you a list of installed packages, but I can't recall where or how.

Perhaps the best way of testing is simply to try it:

[perl]
#!/usr/bin/perl
use CGI;

print "content-type: text/html\n\n";
print "Okay";
exit;
[/perl]

If package CGI is installed, you'll get the 'okay' message, if not you'll get a 500 error.

Air

11:59 pm on Sep 4, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sugarkane, are you thinking of perldiver.cgi? It will list the Perl modules installed on a server. It can be found at [cgi-resources.com...]

Brett_Tabke

12:15 am on Sep 6, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



My tweak of perldiver...
[webmasterworld.com...]