Remove weevils from contaminated flour by placing it in the sunshine for a day. This is a simple procedure. Other home cures include putting ginger, garlic, or a whole turmeric root inside a rice container to keep rice bugs away or using a sock to keep rice bugs away.