A district judge sentenced the man charged with wielding a knife and robbing a downtown San Angelo pharmacy earlier this year.
Chris Salmon appeared at the courthouse for a plea hearing. Police arrested him in April for robbing the CVS pharmacy on west Beauregard.
A woman who working at the CVS told police he waived the knife and demanded prescription medication.
A judge sentenced Salmon to five years in prison.