Ubuntu22/Local Repository

From r00tedvw.com wiki
Jump to: navigation, search

Local Repository

Prerequisites

~$ sudo apt-get install -y gcc dpkg-dev gpg

Example app

~$ mkdir -p ~/example/hello-world-program
~$ echo '#include <stdio.h>
int main() {
    printf("hello packaged world\n");
    return 0;
}' > ~/example/hello-world-program/hello.c
~$ cd ~/example/hello-world-program
~$ gcc -o hello-world hello.c

Naming convention

<package-name>_<version>-<release-number>_<architecture>

~$ mkdir -p ~/example/hello-world_0.0.1-1_amd64/usr/bin
~$ cp ~/example/hello-world-program/hello-world ~/example/hello-world_0.0.1-1_amd64/usr/bin/.
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki