Score:3

What's the cleanest way to get git onto ubuntu core?

in flag

there's plenty of reasons to use git on ubuntu core, e.g. with python3 or to run things like docker-compose (core comes with python3 and docker is available as a snap).

However, there is no git availabe for ubuntu core.

  • It doesn't come with git
  • there's no git snap
  • there's no c-compiler on core to compile it

Of couse, one could move it from a regular ubuntu machine, use docker, or LXD to install a regular debian package, but these are all not very clean and stringent methods.

What is the intended and clean way to get git on core?

Nmath avatar
ng flag
*"there's no git snap"* - There isn't? - https://snapcraft.io/git-ubuntu
in flag
regular x86 ubuntu: snap search git-ubuntu Name Version Publisher Notes Summary git-ubuntu 1.0 canonical✓ classic Ubuntu development git tooling ubuntu core on raspberry (aarch64): # snap search git-ubuntu No matching snaps for "git-ubuntu" It's simply not enough to check the snapcraft.io website. You need to check the architecture and take into consideration, that ubuntu core takes only strict mode snaps.
Koen avatar
ca flag
There a way to do apt on ubuntu core - but I suppose that's not a "clean" way https://askubuntu.com/questions/902905/install-applications-in-ubuntu-core
ng flag
git-ubuntu isn't intended to provide git for direct use itself, and this use is not within the scope of the git-ubuntu project. I have updated the snap package description at https://snapcraft.io/git-ubuntu to try and make this clear.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.