Skip to content

Instantly share code, notes, and snippets.

@hkwi
Last active October 31, 2019 10:01
Show Gist options
  • Save hkwi/dcce8b04866d6b490f5740ad347e3445 to your computer and use it in GitHub Desktop.
Save hkwi/dcce8b04866d6b490f5740ad347e3445 to your computer and use it in GitHub Desktop.
mysql apt respoitory 対応できるか検討

apt repository 側

  1. deb ファイルを集める
  2. deb ファイルのメタ情報を集めた Packages ファイルを作る
  3. mkdir -p main/binary-amd64
  4. dpkg-scanpackages で deb ファイルを検査して上記ディレクトリに Packages ファイルを出力する
  5. Packages を Release に載せる。apt-ftparchive release . > Release
  6. gpg --sign -b -a -o Release.gpg Release

https://wiki.debian.org/DebianRepository/Format#A.22Release.22_files https://pochi.usamimi.info/linux/apt-ftparchive.html

apt 利用側

deb [arch=amd64] http://192.168.0.112:8000/ bionic main

mysql download url 抽出

https://downloads.mysql.com/archives/community/

var x = [];
document.querySelectorAll("a").forEach(e=>{if(e.text=="Download"){x.push(e.href)}});
console.log(x.join("\n"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment