GPIO on Fedora, or how to turn on an LED

GPIO sysfs interface is deprecated, and in the future it will be removed from the kernel. So in Fedora the kernel is compiled without such flag. As a consequence we don’t have the /sys/class/gpio path. We have instead the /dev/gpiochipN character device. This means that the piles of examples you can find on the web are unuseful on Fedora in order to drive, for instance a LED from the command line (echo 22 > /sys/class/gpio/export and stuff like this doesn’t work).