akavel's digital garden

Dev-notes about 0install

Regarding a deterministic listing of apps installed on a machine (via):

$ ls ~/.config/0install.net/apps/
foo
...
$ 0install show --xml foo
[ includes <manifest-digest> elements ]

Regarding migrating signing keys from a Windows machine to another one (via):

The various 0install publishing tools all call gpg (GnuPG) under the hoods to sign feeds.

On Windows GnuPG stores private keys (and other data) in %appdata%\gnupg by default. So copying that directory from your old machine to the new one should do the trick.

After installing gnupg e.g. via 0install itself, this would seem to boil down to (via):

On "source" machine:
$ gpg --export > all.key   # or: gpg --export $ID > single.key
$ gpg --export-secret-key > secret.key  # this or above? unsure

On "destination" machine:
$ gpg --import secret.key     # or: gpg --import all.key ? ...single.key ?
$ gpg --edit-key $ID trust quit   # needed or not needed ???
5⏎  # "I trust ultimately"
y⏎  # "Really set this key to ultimate trust?" - "Yes"
$ gpg -K    # list secret keys
$ gpg --delete-secret-key $UNUSED_KEY
🌱 seedling — contents of this article got classified among young, unrefined ideas that I’ve just planted—or old, unrefined ideas that need watering. If I am a diligent, caring gardener, they’ll grow into budding and maybe even ripe.
© Mateusz Czapliński 🐘 Mastodon 🐙 GitHub 🎮 Itch.io ♟️ BGG 🧶 Ravelry