Squeaky hinges are easy to fix. First try spraying them with a light coat of penetrating oil (such as WD-40). If that doesn't work, pull out the hinge pin from the squeaky hinge, and lightly scrub the pin, barrel, and hinge leaves with steel wool. Coat them with a thin layer of silicone spray or a light penetrating oil, and replace the pin.
Keep a door working well by periodically lubricating the hinges with silicone spray or a light penetrating oil. But don't spray this type of lubricant into a lockset—it will gum it up.