Ubuntu22/Local Repository
From r00tedvw.com wiki
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