How do I properly build a .deb package?

0
5
Asked By CleverWanderer42 On

I'm trying to create a .deb package the right way. I set up a folder containing a DEBIAN directory with a control file. I also placed the source code for SupertuxKart, including assets and code, right beside the DEBIAN folder. However, when I run the command, I get an error saying 'dpkg-deb: error: --build needs a argument.' I feel like something's off with my directory structure, but I thought I set it up correctly. Can someone help me figure this out?

2 Answers

Answered By CodeNinja77 On

You might want to try using `dpkg-buildpackage -us -uc` instead of `dpkg-deb --build`. I find that it might handle things a bit differently, so give it a shot!

Answered By TechyTurtle88 On

It seems like you ran `dpkg-deb --build` without specifying the directory properly. Check out the man page; it’ll show you how to use it correctly. Also, remember that `dpkg-deb --build` is used for binaries, not source code, so you need to ensure you’re targeting the right files in your commands.

CuriousCoder99 -

Got it! What's the command to compile the source code for creating a .deb package? I'm more familiar with using 'make' and checkinstall, but I want to learn the official method.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.