How To Run Executables Built For Fuchsia via the Fuchsia Terminal

41 views
Skip to first unread message

SAm DEv

unread,
Jan 24, 2022, 9:14:45 AM1/24/22
to discuss
Hello,
I am a new to this Fuchsia World i was wondering how can we run executable via the terminal. secondly what is thins repository thing when we run things from the 'ffx' command i read the docs but it was too 'to point' how can we set up our own repo for the same.
thanks,

Devon H. O'Dell

unread,
Jan 24, 2022, 10:47:20 AM1/24/22
to SAm DEv, discuss
Hi!

For your first question, this process is covered in https://www.youtube.com/watch?v=gIT1ISCioDY (Rubber Duck Engineering's Fuchsia walkthrough with Eric Seidel and Adam Barth), which is an excellent watch if you haven't seen it. The hand-wavy version is that it tries to resolve a package with the provided name, and then looks for a binary of the same name in the resolved package's package directory. (Package directories are documented at https://fuchsia.dev/fuchsia-src/concepts/packages/package#structure-of-a-package).

For your first question, running fx serve will start a package server and serve the repository in $FUCHSIA/out/<build-dir>/amber-files/repository. There's some additional documentation about this at https://fuchsia.dev/fuchsia-src/concepts/packages/package_update. The repository served is a TUF (https://theupdateframework.io/) repository. If you wanted to serve your own repository outside the build tree, you'd create a TUF repo with your packages and register it with the target using pkgctl. I'm not sure if this is documented (but this is what the tools do).

Kind regards,

--dho

--
All posts must follow the Fuchsia Code of Conduct https://fuchsia.dev/fuchsia-src/CODE_OF_CONDUCT or may be removed.
---
You received this message because you are subscribed to the Google Groups "discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@fuchsia.dev.
To view this discussion on the web visit https://groups.google.com/a/fuchsia.dev/d/msgid/discuss/3024be53-c53a-4cd0-b376-4c00778a5b90n%40fuchsia.dev.
Reply all
Reply to author
Forward
0 new messages