Creating a Debian Repository
Instructions on how to create a custom Debian repository for MariaDB packages using `dpkg-scanpackages`.
REPO_DIR={pick some location}
mkdir $REPO_DIR
mkdir $REPO_DIR/binary
mkdir $REPO_DIR/source
cp *.deb *.ddeb $REPO_DIR/binary
cd $REPO_DIR
dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
dpkg-scansources source /dev/null | gzip -9c > source/Sources.gzUsing the Debian repository you just created
# sergey's MariaDB repository
#
deb file:///home/psergey/testrepo binary/
deb-src file:///home/psergey/testrepo source/apt-get update # Let apt learn about the new repository
apt-get install mariadb-serverCleaning up after failed installation
Last updated
Was this helpful?

