Wednesday 10 July 2013

httracker on RHEL6

References
HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility.

It allows you to download a World Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML, images, and other files from the server to your computer. HTTrack arranges the original site's relative link-structure. Simply open a page of the "mirrored" website in your browser, and you can browse the site from link to link, as if you were viewing it online. HTTrack can also update an existing mirrored site, and resume interrupted downloads. HTTrack is fully configurable, and has an integrated help system.

To install it on RHEL 6:
  1. As the root user.....
  2. yum groupinstall development
    yum install zlib-devel openssl-devel
  3. Download and unpack the tar-ball from the web site.
  4. cd <unpacked_directory>
  5. ./configure
  6. Check that all the dependencies were meet.
  7. make
  8. make test
  9. make install
 As a regular user execute the command httracker which will start the tool in interactive mode. 
httacker --continue  - to resume a mirror operation that you interrupted.
httacker --update - to bring your local mirror up to date with the original.

Fabulous tool.

Monday 8 July 2013

Get YUM to automatically import a GPG key


Reference: https://access.redhat.com/site/solutions/47159

Drop your GPG key using your favourite file distribution and update system (Red Hat Satellite, Puppet, Chef) into the directroy:

            /etc/pki/rpm-gpg/

Next time yum runs and has check GPG Keys enabled it will automatically import keys from this directory.