自前パッケージを作成するだけだとレポジトリがないので依存関係のインストールに apt が使えないのでかなり面倒です。一つのパッケージならまだしも複数パッケージを管理するならなおさらです。また、ある自前パッケージに依存する別のパッケージをビルドする場合、ビルドする機材自体に自前パッケージのレポジトリがないとこれも一々手動で対応する必要があるので、これもまた面倒です。 そこで aptly を使ってレポジトリを作成したところほぼ期待通りの環境ができたので備忘録として挙げてみました。 早速設定です。最初は aptly をインストールし aptly の設定を行います。 sudo apt-get install aptly sudo mkdir /srv/aptly sudo chown -R user1000:user1000 /srv/aptly #edit ~/.aptly.conf # --snip root_dir: /srv/aptly # --snip 続いて鍵を生成します。なおビルドおよびaptlyを実行するユーザはuser1000というユーザでおこなっています。 #login as user1000 gpg --full-generate-key Please select what kind of key you want: (1) RSA and RSA # --snip Your selection? 1 RSA keys ay be between 1024 and 4096 bits long. What keysize do you want? (3072) 4096 Please specify how long the key should be valid. #--snip Key is valid for? (0) 3y Key expires at Sun 23 Jul 2028 07:59:17 PM JST Is this correct? (y/N) y Real name: Example Stable Release Key Email address: example-release@example.com Comment: 13/trixie You selected this USER-ID: ...