The file and steps required to create a Debian Software Package

Source: Internet
Author: User
The file and steps required to create a Debian software package-Linux Release Technology-Debian information. See the following for details. Required files:
1. One or more executable files or Shell scripts.
2. For the manual page of each executable file.
3. A 'control' file.
4. A 'copyright' file.
5. The 'changelog' and 'changelog. Debian 'files.

Set the temporary debian directory:
1. Create the 'debian/usr/bin' directory.
2. Create the 'debian/usr/share/man/man1' directory.
3. Create the 'debian/debian 'directory.
4. Create 'debian/usr/share/doc/ '.
5. Make sure that the permissions of all subdirectories in the debian directory are 0755.

Copy an object to the temporary debian tree:
1. Copy the executable file to the 'debian/usr/bin' directory.
2. Copy the manual file to the 'debian/usr/share/man/man1' directory.
3. Copy 'control' to the 'debian/debian 'directory.
4. Copy the 'copyright', 'changelog ', and 'changelog. Debian' files to 'debian/usr/share/doc/ .
5. Use the '-- best' option under the temporary debian tree to compress the manual page, 'copyright', 'changelog', and 'changelog. Debian '.

Create and detect binary Debian software packages:
1. Use 'fakeroot' to call 'dpkg-deb -- built' in the 'debian 'directory '.
2. Rename the generated 'debian. deb' to the software package name that finally contains the version number and structure information.
3. Use 'lintid' to check the generated deb software package.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.