Minimum apt repository

My minimum apt repository hosted at
How to install the package:
$vi /etc/apt/sources.list.d/rioapt.list
which has one line: deb [trusted=yes] /
$apt-get update
$apt-cache show riodeb
$apt-get install riodeb
How to test it: $ /usr/local/bin/
outputs: I am from 200125
How to make the package:
cd /home/rio/proj/deb/riodeb_1.0-1
vi DEBIAN/control details in tarball below
has: Package: riodeb Version: 1.0-1 Architecture: amd64 and more
permission must < 775:
vi riodeb_1.0-1/usr/local/bin/ echo some msg. will be installed to /usr/local/bin
cd /home/rio/proj/deb
dpkg-deb –build riodeb_1.0-1
this creates riodeb_1.0-1.deb
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
copy Packages.gz and riodeb_1.0-1.deb to

Files on server: contains two files:
Packages.gz is the index file “apt-get update” that tells where to find a certain package.
riodeb_1.0-1.deb is the software package “apt-get install” downloads that holds
It’s cached as /var/cache/apt/archives/riodeb_1.0-1_amd64.deb,
which can be installed by “apt install” and “dpkg -i” directly

Download everything at

Comments are closed.
%d bloggers like this: