Previous Topic: Verify PrerequisitesNext Topic: Install debmirror


Download Perl Scripts for using Debmirror

Debmirror is a perl script that mirrors Debian repositories on RedHat or SUSE computers. Debmirror requires certain perl modules to be present.

Follow these steps:

  1. Verify that the following perl modules are present:

    Few of the perl modules come with default installation. If the modules are not available, install the modules using one of the following approaches:

Approach 1: Using the cpanminus tool

  1. Install cpanminus tool that downloads perl modules. Do one of the following actions to install the cpanminus tool:
  2. Run the following command to install the required perl modules:
    cpan m <module-name>
    

    Examples:

    To install LockFile::Simple module, run the cpanm LockFile::Simple command.

    To install Net::INET6Glue module, run the cpanm Net::INET6Glue command.

    The command downloads the perl modules from Internet and installs the modules. This command automatically resolves dependencies.

  3. Verify that the Perl modules are installed.

Approach2: Using the src packages

  1. Download the perl module package tar from http://www.cpan.org/modules/index.html.
  2. Extract the tar.
  3. Run the perl MakeFile.PL command. This command generates a makefile.
  4. Run the make command.
  5. Run the make install command.

    Note: Ensure that you resolve the dependencies manually. For example, Net::INET6Glue depends on the Socket6 module. Verify that you install Socket6 before installing Net::INET6Glue. You can find the dependencies at the following location:

    http://deps.cpantesters.org/

  6. Verify that the Perl modules are installed.

Note: For Approach 1 and Approach 2, verify that gcc is installed on the RedHat or SUSE computers.

Approach3: Using the rpm sources

  1. Search for the following perl modules on the Internet and install the modules using YUM:

    Note: If you do not find the libnet-inet6glue-perl module on the Internet, download the source files and build the binaries manually using approach 2.

  2. Verify that the Perl modules are installed.