This was read in the early 1980's in UK. I think it was a 'longish' short story (most likely a novella) in a book with 3 or 4 others.
There is a Earth colony planet and a rough and ready spaceship lands. A man emerges leading a herd of pigs and gets chatting to locals. He soon establishes himself in the community as a pig farmer.
In reality he's a galactic policeman, and the pigs are hyper intelligent and specially bred. They are the future equivalent of police attack dogs.
He soon gets on the trail of the bad guys, which is why he came, I think they're doing like a ghost scam (Scooby Doo!) to keep people from a certain area, but I don't remember why.
At some point the crooks are in an armoured car (maybe!), and the pigs rip it apart.
Note: See how I carefully avoided the police/pigs issue?