Hard to tell without more information, if you havent changed your diet, one thing that makes you fart like crazy is candida overgowth. Did you take antibiotics lately?
So thats a yes? Then you gut flora has been destroyed, u need to take prebiotics like onions and probiotics like organic apple cider vinegar, sauerkraut, etc, to restablish a healthy gut flora. Lower your flour and sugar intake cause they feed mostly the bad guys like candida.
Far from it, candida overgrowth n1 reason is antibiotics, second reason is eating non healthy food and eating too fast, so undigested food reaches the intestines, where it becomes food for bad bacteria and candida.
Sauerkraut can give him farts but not bc of candida, and once the balance is restablished he can stop consuming it.