Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: how to make .deb from source or binary??

  1. #1
    Join Date
    Jun 2008
    Beans
    Hidden!

    how to make .deb from source or binary??

    hi all
    im new here and i wnana know how to make .deb from source code or binary code

  2. #2
    Join Date
    Jan 2005
    Location
    Middle East - Jordan
    Beans
    419
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: how to make .deb from source or binary??

    Hello,
    you can watch MOTU videos on Ubuntu Developer channel on Youtube http://www.youtube.com/watch?v=VyEl3w7SFK4

    and read MOTU fine documentations https://wiki.ubuntu.com/MOTU
    Your freedom is worth more than you think. Take advantage of it while you can.
    I take Ubuntu

  3. #3
    Join Date
    Nov 2008
    Location
    still N/A
    Beans
    9
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: how to make .deb from source or binary??

    download ALIEN it can convert tar.gz and other formats to DEB

  4. #4
    Join Date
    Oct 2007
    Beans
    154
    Distro
    Edubuntu 6.06 Dapper

    Re: how to make .deb from source or binary??

    What do I do if the source is in .tar.bz2 format? I get an unknown package error if I try that. Does it really have to be converted?

  5. #5
    Join Date
    Nov 2007
    Location
    Pittsburgh, Pa
    Beans
    325
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how to make .deb from source or binary??

    Quote Originally Posted by elitenoobboy View Post
    What do I do if the source is in .tar.bz2 format? I get an unknown package error if I try that. Does it really have to be converted?

    Just unpack it in nautilus by right-clicking it and selecting extract, much easier than command line.

  6. #6
    Join Date
    Oct 2008
    Location
    Hindustan
    Beans
    146
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: how to make .deb from source or binary??

    Quote Originally Posted by elitenoobboy View Post
    What do I do if the source is in .tar.bz2 format? I get an unknown package error if I try that. Does it really have to be converted?
    To make Debian package you should have build-essential and checkinstall packages installed in your system. If you dont have both then fire up synoptic package manager (system-->>administration-->>synoptic packa...) search for above packages, mark it and install(apply). i also assume that you do not have any dependency issue with the source package.

    Say your source package name is "abcd"

    1. move abcd to home folder (places -->> home folder)
    2. Extract abcd (right click on abcd and select option extract here)
    3. Open terminal (Application -->> Accessories -->> Termial)
    4. Type following commands

    cd abcd
    ./configure
    make
    sudo checkinstall


    checkinstall is the command creates debian package for you. at the end, terminal will show you where the .deb package is located.

    Hope this will work for you...

  7. #7
    Join Date
    May 2009
    Beans
    1

    Re: how to make .deb from source or binary??

    Hi there. I guess the question is: why would you? there are tens of thousands of debian -and ubuntu, packages for pretty much anything you could imagine or require. Since you are a self-professed nooby, creating .deb packages should be the least of your concerns.

    Some of the reasons for making your own .deb package are architecture-specific performance optimization and memory usage optimization... are you telling me you've already covered everything there is to know and are ready to tackle the above mentioned?

    On the other hand, please consider the following... packages you create are not supported by the community, you'll have a hell of a time trying to update or upgrade those packages and removal of such packages is rarely clean.

    I suggest you try to accumulate as much knowledge as possible and please, the number one advice i always give: Use Ubuntu/Linux and nothing but ubuntu/linux everywhere. And i mean everywhere... on your home PC, laptop, server if you have one and at work. Total immersion is still the best way to learn.

    Good luck

  8. #8
    Join Date
    Oct 2007
    Beans
    154
    Distro
    Edubuntu 6.06 Dapper

    Re: how to make .deb from source or binary??

    Quote Originally Posted by YellowRatBastard View Post
    Hi there. I guess the question is: why would you? there are tens of thousands of debian -and ubuntu, packages for pretty much anything you could imagine or require. Since you are a self-professed nooby, creating .deb packages should be the least of your concerns.
    The reason I need to is that there are a large number of programs out there that I want/need and are not in a repository or in deb format, or that are not up to date and/or buggy.

    Some of the reasons for making your own .deb package are architecture-specific performance optimization and memory usage optimization... are you telling me you've already covered everything there is to know and are ready to tackle the above mentioned?
    So building a deb yourself makes it run faster on that specific system?

    On the other hand, please consider the following... packages you create are not supported by the community, you'll have a hell of a time trying to update or upgrade those packages and removal of such packages is rarely clean.
    Which is why I generally avoid it if possible. That and getting the build environment and config dependencies correct can be a bitch. As for it's removal not being clean, that is easily solved by just reinstalling the system then restoring just the users data. Upgrading to a new distro version instead of installing from scratch has proven to be quite buggy for me in the past. Systems tend to pick up cruft as time goes along anyway.

  9. #9
    Join Date
    Nov 2009
    Beans
    16
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how to make .deb from source or binary??

    Quote Originally Posted by sundar_ima View Post
    To make Debian package you should have build-essential and checkinstall packages installed in your system. If you dont have both then fire up synoptic package manager (system-->>administration-->>synoptic packa...) search for above packages, mark it and install(apply). i also assume that you do not have any dependency issue with the source package.

    Say your source package name is "abcd"

    1. move abcd to home folder (places -->> home folder)
    2. Extract abcd (right click on abcd and select option extract here)
    3. Open terminal (Application -->> Accessories -->> Termial)
    4. Type following commands

    cd abcd
    ./configure
    make
    sudo checkinstall


    checkinstall is the command creates debian package for you. at the end, terminal will show you where the .deb package is located.

    Hope this will work for you...
    Hi, thank you very much for the step-by-step explanation.

    I am having this problem...

    When I type: "./configure"
    I get this error: "bash: ./configure: No such file or directory"

    Am I missing something? What should I do now?

    Thank you in advance for your help.

  10. #10
    Join Date
    Jun 2010
    Location
    Ambala , Haryana, India
    Beans
    124
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how to make .deb from source or binary??

    Type this & then run the above :
    sudo apt-get install build-essential checkinstall
    For Ubuntu basics :-> www.linoob.com

    Ubuntu User #31222

Page 1 of 2 12 LastLast

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
  •