Creating a debian Package

I checked on the debian site to create the package.

But this is not easy to understand, since it does not take a step.

Please help me create a Debian package.

If possible, the detailed steps will be very good.

+3
source share
3 answers

Here is the link I got to create the debian package.

Hope this helps you all guys ...

http://ubuntuforums.org/showthread.php?t=51003

Regards, ISight

+1
source

The goal is to create a package that simply puts the shell of the script where I want.

1. . "deb", "". "deb" ( - ).

    mkdir deb

2. deb, , script 1

mkdir -p ./deb/usr/local/bin

3. script

cp /path/to/my/script/myscript.sh ./deb/usr/local/bin/

4. "DEBIAN", .

mkdir -p ./deb/DEBIAN

5. .

touch ./deb/DEBIAN/control

6. .

Package: myPackagename (no spaces or underscores allowed) Priority: optional Section: misc Maintainer: Maintainer Name Architecture: all Version: 1.0 Depends: package1, package2, ......... Description: short description here long description here (don't remove space at the beginning of line) (replace this with an empty line)

7.

Change ownership: sudo chown -R root:root ./deb

8. debian.

dpkg -b ./deb /my/output/destination/packagename.deb
+3

tar.gz, :

sudo apt-get install checkinstall

:

./configure
make

debian checkinstall, :

sudo checkinstall --install=no --pkgname=XXX --pkgversion=0.X.X --maintainer=YOU_XXX

debian :)

+1

Source: https://habr.com/ru/post/1784036/


All Articles