I have Suse Linux 10.0 and I want to know where the updates are stored during the download of the updates. Can I save these updates in a folder to allow other servers to get the updates from this one server?
Steve Johnson, by email
LM |
YaST stores its RPMs in /var/lib/YaST2/you/mnt/, as long as the option "Delete packages after update" is deactivated. The directory can then be accessed via NFS. See: http://portal.suse.com/sdb/en/2002/08/mlasars_yousync.html
I enjoy reading your Perl column in Linux Magazine. I have tried to compile perl code to be executed on another computer that may be missing my libraries. I tried perlcc but had very little success. I wanted to try PAR. I am running Ubuntu 5.10.
Meir Michanie, by email
LM |
Thanks for your comments on Mike Schilli's great Perl column. As for your specific questions:
perl -MCPAN -eshell
cd perl-x.x.x ./Configure -d -D prefix=/home/username/PERL
Then, if you use
/home/username/PERL/bin/perl -MCPAN -eshell
to install modules from CPAN, it will use the path under your home directory.
But if you run Ubuntu (which is Debian-based), the package installer should do the right thing.
In Michael Schilli's Perl article on Ajax, how does the Javascript snip.js actually do the GET request and pick up the response? There does not seem to be any reference to the XMLHttpRequest object from snip.js or tmp.html.
Mark Wheaton, by email
LM |
When the CGI script on the web server sends back the response, the module injects the necessary JavaScript glue code to make the client/server communication work. If you point your browser to the snip URL, as shown in the article, you will see a line containing
return new XMLHttpRequest()
if you select View Source in your browser menu. It is in the surrounding JavaScript code that the magic happens.