While there are several builds of 'linux' or unix that could be run in certain Apple environs (hardware)
the names and conditions are detailed enough to consider further and in-depth study prior to being
fully (experimentally) committed to the installation and attempted use of any specific version.
Ubuntu, Debian, Mint PPC, and others offer possibilities; and may require much more command-line
use to access their features than the graphic user interface of Mac OS X (or earlier OS 9).
https://duckduckgo.com/?q=linux+version+for+PPC+Mac+G5+G4&t=ffsb&ia=web
While I've read about these differing systems and how they could be used in Apple architecture
I've not used any of them; but do have a sprinkling of Mac OS from early version 1985 on and
lesser so with 'windows' PC. Not sure, but there are several places to study the topic online and
you may find a good offline book to backup the internet to use with experimental versions.