A simple Debian package will be created in the next steps, the next steps are a tutorial for beginners
assume that I have a file, say test.sh, that just prints the test on screen
#!/bin/sh
set -e
echo "this is sample debian package created " >&2
What should be the result after installing the debian package? A) I want to place the above file, which I named test.sh in / home / bla / Desktop / after installing the package using "dpkg -i test-1.0.deb"
To achieve the above process, follow the steps below as it
mkdir test-1.0
cd test-1.0
mkdir -p home/bla/Desktop/
cp test.sh home/bla/Desktop/
cd ..
cd ..
cd ..
mkdir DEBIAN
cd DEBIAN
add a control file with the following contents
Package: test
Version: 1.0
Section: devel
Priority: optional
Architecture: all
Essential: no
Depends: bash
Pre-Depends: no
Recommends: no
Maintainer: test <test@test.test>
Replaces: no
Provides: no
Description: A sample testpackage in order to demonstrate how to create debian packages
The package is ready to go beyond the test folder and enter dpkg -build test-1.0 /
your package is ready and can be installed using dpkg -i test-1.0.deb
dh_make debuild, , , test.sh
:
no mater, test.sh , , , debian manual
- , , .., , debian, debuild/dpkg-buildpackage,