| 1 | = Building A Package = |
| 2 | |
| 3 | The `debuild` command is used to actually build the package. Recall that back in [wiki:GettingStartedWithDevelopment] we set some default options for debuild, and this documentation assumes those examples have been set. |
| 4 | |
| 5 | To build your package, change to the root directory of the package (which contains a `debian` directory), and type: |
| 6 | `debuild` |
| 7 | |
| 8 | If all went well, the build should succeed, and the .deb file should have been created in the _parent directory_ of the one you're currently in. |
| 9 | |
| 10 | == Troubleshooting == |
| 11 | |
| 12 | A common problem is not having build dependencies installed. |
| 13 | |
| 14 | == Cleaning Up == |
| 15 | |
| 16 | If you look at your package's directory now, you'll see a lot more files than were originally there. These were created as part of the build process. You can clean up with the command: |
| 17 | `debuild clean` |
| 18 | |
| 19 | This will remove any files created by the build process. |