Debian and Ubuntu Software Installation Deb Pack production guide

Source: Internet
Author: User
Keywords Ubuntu debian software installation Deb package
Tags .gz .gz file aliyun apt binary code deb package debian

The Deb format is http://www.aliyun.com/zixun/aggregation/33836.html ">debian Special installation package format, with APT software management system, becomes the current very popular in Linux Software installation package." The Debian and Ubuntu software installations are all Deb packages.

But many people make deb packages from RPM to Deb or use Dpkg-b for conversion. Although these two methods can be made out of Deb, but obviously very rough, today introduce the formal method: use Debhelper to make Deb. Today we will try to make a package with you in one example.

Our example is gwrite this software, software homepage: http://code.google.com/p/gwrite/. You can click here to download the source code. The term in the Debian project is called Upstream Tarballs, which is the upstream release of the code package. After the source download is complete, we create a new folder in the home directory, such as packaging, and then execute the following command:

mkdir ~/packaging
CD ~/packaging

Put the. tar.gz file that you just downloaded into this folder. Then use the command to extract the file:

Tar zxf gwrite-0.5.0.tar.gz

(Do not use graphical tools to decompress, because it will create permissions confusion), into the extracted directory:

CD gwrite-0.5.0

Then you have to install a few packages, and then introduce. The first one to install is debhelper:

sudo aptitude install Debhelper

The Debhelper software package is a variety of scripts that can help us with our next package work. The next installation is Dh-make:

sudo aptitude install Dh-make

The Dh-make package provides the Dh_make command we need to use. This command is used to generate our Deb package template based on upstream tarballs. Now we have the CD to unpack the Good program directory, now the folder path is ~/packaging/gwrite-0.5.0. And then we execute this command:

Dh_make-e "<youremail@example.com>"-F. /gwrite-0.5.0.tar.gz

One of the names, for example, is Aron Xu. <> is your email address. -F is followed by the path of the upstream tarballs. If the above command complains, please use this:

Dh_make-e youremail@example.com-f. /gwrite-0.5.0.tar.gz

(.. /means the upper directory of the current directory) and then the program prompts:

Type of Package:single binary, indep binary, ListBox binary, library, kernel module, Kernel patch or CDBs?

We enter S to indicate that the source code package only generates a Deb. Enter S and press ENTER. Then it displays some information, carriage return confirms that this time to look at the current directory, will be an extra Debian folder. The gwrite_0.5.0.orig.tar.gz file appears in the parent directory.

Next, go to the Debian directory, the first file is Changelog. Changelog, as the name suggests, is the software version of history.

Gwrite (0.5.0-1) unstable; Urgency=low
Initial release (closes: #nnnn) <nnnn is the bug number of your itp>
--Aron Xu <happyaron.xu@gmail.com> Wed modified 2010 20:21:24 +0800

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.