相关文章推荐
乐观的炒饭  ·  Download CMake·  1 月前    · 
淡定的冰淇淋  ·  Linux ...·  1 月前    · 
私奔的帽子  ·  By Click Downloader ...·  4 月前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am trying to upload my app on Cydia and it requires .deb package. I am unable to figure out how to make .deb packages on mac. I am using 10.6.3 when I write this command on terminal

dpkg-deb -b MyProgram

Terminal output is

-bash: dpkg-deb: command not found

I've install fink, Mac ports insert Mac DVD to find out but nothing helps.

Without a pressing reason would not suggest using both MacPorts and Fink.. Now, I'm a Fink Rat, but I'm willing to bet that Juri is a Port Pusher. Which you want is a function of what package you need and which style you prefer. In either case you'll need XCode. – dmckee --- ex-moderator kitten Oct 22, 2010 at 2:09 BTW-- I'm going to disagree with the off-topic votes. Building packages is part of the development process. We don't hold questions about tools for building windows installers as off-topic, do we? – dmckee --- ex-moderator kitten Oct 22, 2010 at 2:11 I've installed macports and run this command dpkg-deb -b MyProgram but I get this error warning, dpkg-deb: ignoring 3 warnings about the control file(s) Can't use format gnu: No such format 'gnu': Invalid argument Usage: List: tar -tf <archive-filename> Extract: tar -xf <archive-filename> Create: tar -cf <archive-filename> [filenames...] Help: tar --help dpkg-deb: subprocess tar -cf returned error exit status 1 – iC7Zi Oct 25, 2010 at 8:21

brew install dpkg

If you don't have Homebrew installed, go to brew.sh. It's a simple one-liner to install.

Homebrew is less invasive, less complicated, and more popular than Macports or similar.

I installed mac ports 1.7 through terminal as no package is available.

After that I installed Mac ports 1.9 through installer.

Then goto this path /opt/local/bin and run sudo port selfupdate

after that execute sudo port install dpkg

it will take some time and after that your dpkg is successfully configured.

Run this command sudo dpkg-deb -b MyProgram to make MyProgram.deb

Note MyProgram should contain DEBIAN folder and under that control file remove txt extention

Below is control file

Website: www.zeeshanullah.com
Maintainer: zeeshanullah <zzeeshann@gmail.com>
Name: Snapture
Package: zeeshanullah
Section: zeeshanullah
Version: 2.x.x
Architecture: iphoneos-arm
Description: GPS joke.
Sponsor: zeeshanullah.com <zeeshanullah>

dont forget to place a new line at the end of control file otherwise you will get an error.

I've installed macports and run this command dpkg-deb -b MyProgram but I get this error warning, dpkg-deb: ignoring 3 warnings about the control file(s) Can't use format gnu: No such format 'gnu': Invalid argument Usage: List: tar -tf <archive-filename> Extract: tar -xf <archive-filename> Create: tar -cf <archive-filename> [filenames...] Help: tar --help dpkg-deb: subprocess tar -cf returned error exit status 1 – iC7Zi Oct 25, 2010 at 8:21 Zeeshan-ullahs-MacBook-Pro:/ zeeshanullah$ sudo port install dpgk Error: Port dpgk not found To report a bug, see <guide.macports.org/#project.tickets> – iC7Zi Oct 23, 2010 at 13:01 I've installed Mac ports 1.9.1 and xcode when I run this command When I run this command sudo port install dpgk I found Zeeshan-ullahs-MacBook-Pro:/ zeeshanullah$ sudo port install dpgk Error: Port dpgk not found To report a bug, see <guide.macports.org/#project.tickets> – iC7Zi Oct 23, 2010 at 13:09 I've installed macports and run this command dpkg-deb -b MyProgram but I get this error warning, dpkg-deb: ignoring 3 warnings about the control file(s) Can't use format gnu: No such format 'gnu': Invalid argument Usage: List: tar -tf <archive-filename> Extract: tar -xf <archive-filename> Create: tar -cf <archive-filename> [filenames...] Help: tar --help dpkg-deb: subprocess tar -cf returned error exit status 1 – iC7Zi Oct 25, 2010 at 8:21

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.