Trucrux Inc

Package.gz for OTA update on apache server

Create Debian Package #

Debian package for binary files

Add the repository’s public key on the PC host:

DOWNLOAD THE KEY FILE TO THE PC HOST WHICH IS GIVEN BELOW AND RUN THE BELOW COMMAND FROM THE DOWNLOADED FOLDER:

$ sudo apt-key add keyFile

To check if the key is added or not run the below command: #

$ apt-key list

above command gives the result as below:

pub 4096R/A282B7A5 2018-01-05
uid repository

Sign the created helloworld.deb with the attached keyFile using the below command: #

$ sudo dpkg-sig --sign builder file1.deb

After signing the deb package, copy it to the local server folder(i.e. inside /var/www/html/debs/amd64)

$ sudo cp helloworld.deb /var/www/html/debs/amd64/

Go to the local server folder as given below #

$ cd /var/www/html/debs/

Now run the following command to create Package.gz for deb packages inside the amd64 folder #

$ sudo chown user:user -R .

$ dpkg-scanpackages amd64 | gzip -9c > amd64/Packages.gz