This is the polynomial with roots $\omega,\omega^2,...,\omega^5$, where $\omega$ is the primitive $6^{th}$ root of unity over $\Bbb F_5$. So that the irreducible factors are the minimal polynomials of the roots, and using the Galois automorphism $\sigma(\omega)=\omega^5$, one can find out that the irreducible factors are $(x-\omega^3)$, $(x-\omega^2)(x-\omega^4)=x^2-(\omega^2+\omega^4)x+1$ and $(x-\omega)(x-\omega^5) = x^2-(\omega+\omega^5)x+1.$
As $(\omega^3)^2=1$ while $\omega^3\neq 1$, $\omega^3=-1$. But I have trouble finding $\omega^2+\omega^4=-(\omega^{-1}+\omega)$ and $\omega+\omega^5=\omega^{-1}+\omega$. The key is to find $\omega^{-1}+\omega$ in this case.
In general, let $n$ such that the prime $p$ doesn't divide $n$, then over the finite field $\Bbb F_{p^m}$ one could find minimal polynomial of each $\omega^k$, where $\omega$ is the primitive $n^{th}$ root of unity in the form $(x-\omega^k)(x-\omega^{kp^m})...$ but then the problem is to compute the coefficient now as an element in $\Bbb F_{p^m}$. Is there a general way to compute them?
Using computer support, there is not too much to do. For instance, asking sage...
The human way would be as follows. We factor instead $x^6-1$. Over the integers we know the factors $(x-1)$, $(x^2-1)$, and $(x^3\pm 1)$. So the given polynomial $f$ (lifted or not from $\Bbb Z/5=\Bbb F_5$ to the integers $\Bbb Z$) has the factors $(x+1)$, and $(x^2+x+1)$, and $(x^2-x+1)$.
We can check that the two factors of degree two are irreducible over the field with five elements $\Bbb Z/5=\Bbb F_5$, they have no root in this field. So the computer decomposition is also easy to get with bare hands.
In a more general case we still can use the Galois structure of the finite fields. For illustration, let us consider the prime $p=101$, the exponent $k=3$, and the prime power $q=p^k=101^3$ of this prime, and the fields $F=\Bbb F_p=\Bbb Z/p$, and $L=\Bbb F_q$, and some few polynomials of the shape $x^n-1$ with $n$ relatively prime to $p$. First of all, this polynomial factors over $\Bbb Z$ as $$ x^n-1 =\prod_{d\text{ divisor of }n}\Phi(d)(x)\ , $$ where $\Phi_d$ is the $d$.th cyclotomic polynomial.
So we want to factor some $\Phi_d$, seen as polynomial in $L=\Bbb F_q[x]$. Let $a$ be a root of $\Phi_d$ in an extension of $\Bbb F_q$. Then its Galois conjugates are $a$, $a^q$, $a^{q^2}$, and so on. The polynomial $\Phi_d$ will stay irreducible over $\Bbb F_q$ - as was the case with the factors given polynomial $(x^6-1)/(x-1)=\Phi_2(x)\Phi_3(x)\Phi_6(x)$ over $\Bbb F_5$, if we have again $\varphi(d)$ such conjugates, the same number as over $\Bbb Q$. This is the case when $q$ modulo $d$ has multiplicative order $\phi(d)$ in the multiplicative group $(\Bbb Z/d)^\times$. I.e. $q$ modulo $d$ is a genarator of this multiplicative group.
Else we stop earlier and get earlier factors.
Some examples illustrate this situation for the sample prime power $q=101^3$. We may realize $L$ as $F[u]:=F[x]/(x^3 + 3x -2)$, and $u$ is the class of $x$ modulo $(x^3 + 3x -2)$.
$n=5$:
The polynomial $\Phi_5(x)=(x^4+x^3+x^2+x+1)$ splits completely over $F=\Bbb F_p$ (so also over $L=\Bbb F_q$), $\Phi_5(x)=(x-a)(x-a^2)(x-a^3)(x-a^4)$, $a=-6=95$. This can be seen as follows. The multiplicative group $F^\times$ of $F$ is cyclic of order $(p-1)=100$, and $n=5$ is not relatively prime to this order. In fact $n$ divides $(p-1)$, and so we can find a root $a$ of the unit in $F$ which has order $5$. And yes, explicitly, $a=-6$ is such a root, $a^5=-7776=-7777+1=-7070-707+1=1$, and its powers $a^k$, $k=1,2,3,4$ (prime to $5$), are also units of order $5$.
$n=11$:
The polynomial $\Phi_{11}(x)=(x^{10}+x^9+x^8 + x^7+x^6+x^5+x^4+x^3+x^2+x+1)$ remains irreducible over $F$ and over $L$. Why? The residue class of $q=101^3$ in the multiplicative group $(\Bbb Z/n)^\times$ is $8=-3$, and this element has maximal order $10$.
Explicitly, modulo eleven $(-3)^5=-243=-242-1=-1\ne 1$, and $(-3)^2=9\ne1$, so the order does not drop from ten. The ten powers of $(-3)$ modulo eleven are $(-3)^1=8$, $(-3)^2=9$, $(-3)^3=-27=-5=6$, and so on.
The polynomial $\Phi_{11}$ has no root in $F$, and having degree ten, we expect a root in an extension with degree dividing $10$. So there is no root in $L$ either. Take such a root $a$ in an extension of $L$. Its conjugates are $a$, $a^q=a^8$, $a^{q^2}=a^9$, $a^{q^3}=a^6$, and so on. Since $(-3)$ generates $(\Bbb Z/11)^\times$, we have ten conjugates, exactly so many as over $\Bbb Q$. So $\Phi_{11}$ remains irreducible also over
$n=39$:
The polynomial $\Phi_{39}(x)=(x^{24} - x^{23} + x^{21} - x^{20} + x^{18} - x^{17} + x^{15} - x^{14} + x^{12} - x^{10} + x^{9} - x^{7} + x^{6} - x^{4} + x^{3} - x + 1)$ is a case "between" the above two cases. Let us see what happens over $F=\Bbb F_{101}$. There is no root of $\Phi_{39}$ in $F$. Let $a$ be a root in some extension of $F$ with degree dividing $\varphi(39)=24$. Then the conjugates over $F$ are $a$, $a^p$, $a^{p^2}$, and so on. Because of $a^{39}=1$, we consider the powers that appear $1,p,p^2,$ and so on as elements of $(\Bbb Z/39)^\times\cong(\Bbb Z/2)^\times \times(\Bbb Z/13)^\times$. Then $p=101$ has order six modulo $39$, let us check $101^6$ modulo $13$ for this, $101^3=1030301=103\cdot1000 + 301=-10000+2=-10010+10+2=12=-1$ modulo $13$. So the roots of $\Phi_{39}$ in the splitting field of this polynomial over $\Bbb F_p$ come in four $6$-packs, thus we expect a splitting in four factors of degree six. And this is indeed the case:
And we obtain:
As seen, over $L$ we have factors of degree two, since $q=101^3$ has order two in $(\Bbb Z/39)^\times$. This information can be obtained using Galois structural considerations. But for the explicit formula of each factor, we have to get wet and compute.
$n=19$:
The polynomial $\Phi_{19}(x)=(x^{18} + x^{17} + \dots + x + 1)$ shows a similar situation. The number $p$, seen inside $(\Bbb Z/19)^\times$ has order nine, $101^3=7$ and $7^3=1$ modulo $19$, so we expect two factors of degree nine over $F=\Bbb F_p$. The order is three for $q=p^3$, so we expect to see six factors of degree three. Yes, the same code adapted to show $\Phi_{19}$ factorizations delivers:
Again, the structure can be obtained by checking the order of $p$, respectively of $q$ in $(\Bbb Z/n)^\times=(\Bbb Z/19)^\times$, but to get the factors explicitly leads to a (less human) computation.