Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankit-ap-paul/first-debian-package
My first Debian package
https://github.com/ankit-ap-paul/first-debian-package
bash debian-packages shell-script
Last synced: 5 days ago
JSON representation
My first Debian package
- Host: GitHub
- URL: https://github.com/ankit-ap-paul/first-debian-package
- Owner: Ankit-AP-Paul
- Created: 2024-08-22T13:44:17.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T13:50:45.000Z (6 months ago)
- Last Synced: 2024-12-06T19:18:59.322Z (2 months ago)
- Topics: bash, debian-packages, shell-script
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# First Debian package
### Installing packages
```
sudo apt install dpkg-dev devscripts debhelper build-essential
```### Setting up directory structure
```
pakage-name/
|- DEBIAN
|- control
|- usr
|- bin
|- bashscript.sh
```### Add the following in `control` file
```
Package: package-name
Version: 1.0
Section: base
Priority: optional
Architecture: all
Depends: bash (or other dependencies)
Maintainer: Your Name
Description: A simple package for demonstration purposes
```### Set Permissions
```
chmod 755 usr/bin/bashscript.sh
chmod 755 DEBIAN
```### Build Package
Go to the root of package directory and build the package
```
dpkg-deb --build package-name
```This creates a `.deb` file in the current directory named `package-name.deb`
### Install and Test the package
```
sudo dpkg -i package-name.deb
```Run the installed script
```
bashscript.sh
```