ubuntu custom repo

Put your files into a directory say /opt/mariadb10.2

1
2
3
#! /bin/bash
cd /opt/mariadb10.2
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

Now simple place a line in the /etc/apt/sources.list

 deb file:/opt/mariadb10.2 ./

However you will get a Security not signed error

Have a look at Setup Signed Repo