Here are the steps to repair drywall cracks:

1. Widen the crack with a utility knife and brush away dust.
2. Fill the crack with lightweight spackle or setting-type joint compound using a putty knife.
3. Apply a thin coat of spackle or joint compound over the entire area and smooth it with a putty knife.
4. Apply fiberglass drywall tape along the crack to prevent it from recurring.
5. Sand the dried spackle or joint compound with medium-grit sandpaper.
6. Paint over the crack with latex primer followed by wall paint.

: [The Home Depot](https://www.homedepot.com/c/ah/how-to-patch-drywall/9ba683603be9fa5395fab90db38ddbf)