I believe the most effective thing a dictator can do to maintain their power is to fill the government with only allies and friends and purge it of any opposition. This is because, while there may be some opposition from the people close to you, it would be much easier to have an influence over people who have a personal relationship with you rather than people that are chosen purely on merit.