Pull dip stick slightly so air can get in the block, drain the oil, use a swivel attachment on a socket (32mm I believe?) and loosen like this. Grab paper towels and slowly pull out filter and wrap it as you pull it out. Then move away from the engine. You can also lay down clothes to catch the oil if you do drip.
I have to do this on my BMW as the filter is at the back of the straight 6 near the FW and it’s a tight fit with all the wires and what not around and above it.