Build and Extract a Debian (.deb) package on Ubuntu

There are 4 replies in this Thread which was already clicked 4,387 times. The last Post () by amirali.sh.

    • Official Post


    Build a debian package


    First create the directory structure where we can build a .deb package with this command:


    d70fe17f55fe.jpg


    Code
    mkdir -p deb/DEBIAN


    For this example we are building the LinuxsatPanel plugin.
    The directory structure where we will be sending the LinuxsatPanel on a linux enigma2 receiver is /usr/lib/enigma2/python/Plugins/Extensions
    FTP usr directory with all its contents to /root/deb
    FTP control file to /root/deb/DEBIAN (if using postinst or prerm scripts send them to the same directory).


    a8a66ecf465f1759b19.gif


    When all of the above is in place, create the debian package like this:
    # dpkg-deb -b <dir/DEBIAN> <new-package.deb>
    <dir/DEBIAN> location to DEBIAN directory </root/deb>
    <new-package.deb> name of your new debian package <enigma2-plugin-extensions-linuxsat-panel_1.0.deb>


    Code
    dpkg-deb -b /root/deb enigma2-plugin-extensions-linuxsat-panel_1.0.deb


    The new .deb package will be found in /root directory.


    1aaa005a032e561.jpg



    Extract a debian package


    FTP .deb to /root/deb directory.


    88dcebaa9261696b.jpg


    Run the following command:


    e2e68c6cfd.jpg


    # dpkg-deb -x <package.deb> <dir>
    <package.deb> name of the .deb package <enigma2-plugin-extensions-linuxsat-panel_1.0.deb>
    <dir> directory where the .deb file is located </root/deb>


    Code
    cd /root/deb


    Code
    dpkg-deb -x enigma2-plugin-extensions-linuxsat-panel_1.0.deb /root/deb


    10d0396ffe99c6a43.jpg


    Extract control-information from a package


    FTP .deb to /root/deb directory.


    88dcebaa9261696b.jpg


    Run the following command:


    d3f1f.jpg


    # dpkg-deb -e <package.deb> <dir/DEBIAN>
    <package.deb> name of the .deb package <enigma2-plugin-extensions-linuxsat-panel_1.0.deb>
    <dir/DEBIAN> location of the DEBIAN directory </root/deb/DEBIAN>


    Code
    cd /root/deb


    Code
    dpkg-deb -e enigma2-plugin-extensions-linuxsat-panel_1.0.deb /root/deb/DEBIAN


    The control file will be found in /root/deb/DEBIAN directory.


    4d43334308ee120.jpg

  • It works perfectly fine with your example: Enigma2-plugin-extensions-linuxsat-panel_1.0.deb


    But do not work with other deb.files.
    Example: downloaded this that you have created: enigma2-cams-oscam_svn9927_all.deb
    FTP "enigma2-cams-oscam_svn9927_all.deb" to /root/deb/ and run the command:

    Quote


    root@ubuntu:~# dpkg-deb -x enigma2-cams-oscam_svn9927_all.deb /root/deb
    dpkg-deb: error: klarte ikke lese arkivet «enigma2-cams-oscam_svn9927_all.deb»: No such file or directory
    root@ubuntu:~#


    What am I doing wrong?

  • Dear Master G

    iwant to comile a skin in (.deb) but when the deb creation complete . the file size is 0Kb

    but the extraction is so simple and wel

    l

    here is the attach of dcc screen

    usnig merlin4 - dcc- and filezilla and im running win 10 ( extraction were ok bur deb creation not succesful)

    thanks in advane

Get community help for all other Enigma2 plugins

This is your forum for support, questions, and guides for plugins not covered in our specialized sections. Support for uncategorized and miscellaneous Enigma2 plugins. Find help, troubleshooting, and discussions for plugins that don't fit other forum categories.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!