Results 1 to 4 of 4

Thread: How to configure deb package that install another package

  1. #1
    Join Date
    Oct 2005
    Location
    Milano, Italy
    Beans
    871
    Distro
    Ubuntu Jaunty Jackalope (testing)

    How to configure deb package that install another package

    Hi,

    sorry for the silly question, but I have a question about deb packaging.
    I've created correctly my package, but I do not understand how to install another package when I intall the one that I have buildt.

    What I expect is the when I'm install my package, the installation will provide to install a dependent package (curl in this case)

    This is my control file:
    Source: mypublic
    Section: utils
    Priority: extra
    Maintainer: dentaku65 (dentaku for ubuntu) <dentaku65@xxxx>
    Build-Depends: debhelper (>= 8.0.0)
    Standards-Version: 0.1-20
    Homepage: <insert the upstream URL, if relevant>

    Package: mypublic
    Architecture: any
    Depends: curl
    Description: mypublic
    mypublic
    I don't know how to build my deb that when is installed, will install curl too.

    TIA
    ------------------------------------------------
    yep ”short and long URL„
    http://yep.it/
    ------------------------------------------------

  2. #2
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    2,491

    Re: How to configure deb package that install another package

    A rather handy explanation was in the Debian User Forums. See http://forums.debian.net/viewtopic.php?f=19&t=77053

    The short answer is that is may depend upon how you are compiling (or creating) the package.
    The longer answer is that you put the dependency in the right place in the control file.

    Is the package not building?
    Is the package not installing?
    Is the dependency not installing?
    Are you getting any error messages?

  3. #3
    Join Date
    Oct 2005
    Location
    Milano, Italy
    Beans
    871
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: How to configure deb package that install another package

    Hi ian,

    thank you for your answer; the package was correct, but I did not know that dpkg is ignoring Depends entry; in fact doing:
    Code:
    sudo dpkg -i <pkg.deb>
    give me the output with curl as missing package

    So I've upload my package on PPA and with the:
    Code:
    sudo apt-get install <pkg.deb>
    Correctly install curl with my package.

    I did not know that dpkg and apt (and aptitude) have different behaviour on installing a deb package.

    den
    Last edited by dentaku65; November 9th, 2013 at 10:25 AM.
    ------------------------------------------------
    yep ”short and long URL„
    http://yep.it/
    ------------------------------------------------

  4. #4
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    2,491

    Re: How to configure deb package that install another package

    I'm happy to see that it's working for you now.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •