Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I create .deb packages of each module and they're hosted on a web server with a Packages.gz file (which is generated using some command). I did it by hand (found a tutorial online) until I found dh-make-perl as i5513 mentioned. It works pretty well.

For the "dependencies" deb file (the one that lists all the packages required for our servers, both from the official repo mirror and our package list) I created it by hand. Essentially you just have to create a debian CONTROL file and then run some dpkg commands on it. I can post more details when I get to work and take a look. It's one of those things that works and we only touch when we need a new module.

Update: Okay here are some instructions...

$ export DEBFULLNAME="<your_name>" $ export DEBEMAIL="<your_email>"
  1. Go to, search for the package, click the one you want, and right-click the Download link and click Copy Link Location. For this example I'm going to use
  2. Make a directory for your package.
    $ mkdir HTML-Strip
  3. Change to that directory
    $ cd HTML-Strip
  4. Download the package
    $ wget +ip-1.06.tar.gz
  5. Unzip the package
    $ tar xvfz HTML-Strip-1.06.tar.gz
  6. Configure/build the package
    $ dh-make-perl -p my-libhtml-strip-perl --build HTML-Strip-1.06
  7. Now your project directory should have the following:
    drwxr-xr-x 4 4096 2010-04-13 20:34 HTML-Strip-1.06 -rw-r--r-- 1 7764 2006-02-10 11:27 HTML-Strip-1.06.tar.gz -rw-r--r-- 1 17912 2010-04-13 20:35 my-libhtml-strip-perl_1.06-1_i386. +deb
  8. Check to make sure you can install the package
    $ sudo dpkg -i my-libhtml-strip-perl_1.06-1_i386.deb
  9. Make sure you can "use" the module
    $ perl -mHTML::Strip -e 1
Once you have the .deb package you need to host it on a web server somewhere and you need to generate a Packages.gz so apt/etc. knows about each package.

Assuming you put all your .deb files in a folder called binary/ you run:
dpkg-scanpackages binary /dev/null | gzip -9c > Packages.gz
Now you have a folder called binary/ with a bunch of .deb files in and a Packages.gz with a list of those files. You can edit our /etc/apt/sources.list to add your repo like this:
deb http://<your_url>/ /

In reply to Re^3: What are all the possible ways to deploy Perl code on multiple servers? by saberworks
in thread What are all the possible ways to deploy Perl code on multiple servers? by jozef

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and a moth chases the moon...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (1)
    As of 2018-05-26 03:21 GMT
    Find Nodes?
      Voting Booth?