What is the actual definition of the exceptional Lie group $\mathrm{G}_2$? In the literature I always find things like 'It can be seen as the automorphism group of the algebra of octonions' or 'Given a 7-dimensional vector space $V$ over the real, it is isomorphic to the subgroup of $\mathrm{GL}(V)$ fixing a particular $3$-form'.
I guess the answer lies in the theory of representations of Lie groups/Lie algebras, but I am afraid there is a long path to take before getting to the exceptional Lie groups. Any suggestion for approaching this subject would be appreciated.
There is no such thing as the Lie group $G_2$. There is the exceptional complex Lie algebra $\mathfrak{g}_2$, which is a $14$-dimensional simple Lie algebra over $\mathbb C$. And there are several connected real lie groups $G$ such that the complexification of the corresponding Lie algebra is (isomorphic to) $\mathfrak{g}_2$. One of them (and, up to isomorphism, the only one which is compact) is indeed the group of automorphisms of the octonions. This was proved by Elie Cartan in 1914.