Made a simple deb package

Source: Internet
Author: User
A simple deb package-Debian information of the Linux release-was created. The following is a detailed description. I have always wanted to create a deb package, and it does not do anything. It depends on my frequently-used packages, so that I can install my frequently-used software after reinstalling the system. (This kind of package for purely dependency creation exists in the official sources of Debian GNU/Linux and Ubuntu .)

The complete deb package creation wizard is available on the official website of Debian, both Chinese and English.

Because this package is extremely simple, you do not need to use the complex tools dh_make, dpkg-buildpackage. Because changelog, readme, and copyright are not required for self-use, it is enough to directly use the basic dpkg-deb. Now, assume that the package name I want to create is packages4me and the version number is 0.0.

First, find a directory as the working directory, for example ~ /Build/packages4me, and then create the directory package under it (the file name is random), and then create DEBIAN under the package (the last DEBIAN must be capitalized), and write a text file under DEBIAN, name it "control" and the content is:

Package: packages4me
Version: 0.0
Architecture: i386
Maintainer: My Name
Installed-Size: 0
Depends: kde-core, xorg, build-essential
Section: misc
Priority: extra
Description: Depends on my favorite packages
This package depends on my favorite packages.

Modify the file content as needed. The Depends line is the package I want to depend on. Only three packages are written here, and version requirements can be added, such as gcc (> = 4.2.

After modification, return to the directory ~ /Build/packages4me: run the command dpkg-deb-B package. (Note that the second parameter of the command is a vertex, which can help generate a standard file name. For details, see manual)

The packages4me_0.0_i386.deb file is generated in the current directory. OK. Now you can install it.

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.