You cannot do it for all angles with only an unmarked ruler and a compass.
Lemma: An angle of $10^\circ$ is not constructible
Proof: Suppose otherwise. Let $\angle XYZ=10^{\circ}$, where $Y$ is the origin and the distance from $X$ to the origin is $1$. Additionally, suppose $Z$ is on the x-axis. Then the distance from $X$ to the x-axis must be constructible, but this distance is precisely $\sin(10^\circ)$. We know that $\sin(10^\circ)$ isn't constructible, since it has minimal polynomial $8x^3-6x+1$, contradiction.
Now, suppose that we can rotate a point $A$ with angle $10^{\circ}$ about $P$, mapping $A$ to $B$. Then $\angle APB=10^{\circ}$ was constructed, impossible by our lemma.
Now, to do it for some whole number of degrees $\alpha$ given that it's possible to do it for that $\alpha$.
- First, draw the circle centered at $P$ passing through $A$ with the compass
- Construct the angle $\alpha$.
- Copy the angle $\alpha$ over such that $\angle APC=\alpha$
- Let $B$ be the intersection of the circle and $PC$, then $B$ is a degree $\alpha$ rotation of $A$ about $P$.
The main idea here is that this problem is essentially the problem of constructing an angle. However, not all angles are constructible (as I showed for $10^\circ$). Using the same argument for $10^\circ$, we get the following:
An angle $\alpha$ is constructible if and only if $\sin\alpha$ is a constructible number
Now, whether a number is constructible or not is a highly researched problem (and probably out of the scope of what you are asking). You can do some googling, it boils down to the degree of the minimal polynomial of that number. However, see Chebyshev Polynomials! This helps us find a polynomial that $\sin\alpha$ is a root of.
---
You mentioned protractor. If a protractor is allowed, life is a lot easier because we can easily construct $\alpha$. Hence using the method in the second section of this answer, we can solve the problem. However, the problem of "constructing" something generally refers to only using a compass and an unmarked ruler, since these were the only 100% accurate tools in the times of the Greek.