They're pretty easy to get to stay put. My trick, which requires no glue is:
1. Tin the pad slightly.
2. Get some tweezers, stick the part on top of the pad and just heat it to tack solder it.
3. Solder diagonally the other end.
4. Solder the original end again.
5. Solder the rest of the pins.
6. Clean up with wick, then IPA.
I've done this about 500 times now and no glue required! Works down to 0402's, TSSOP, SOIC, SOTs, the lot.
Using these tweezers, which are worth the cost:
https://uk.rs-online.com/web/p/tweezers/8348161/