Adding dried garlic flakes to oil for storage is generally not recommended due to the risk of botulism. The anaerobic environment of the oil can promote the growth of *Clostridium botulinum* bacteria, which produces a dangerous toxin.
While dried garlic flakes themselves are safe, the problem arises when they are submerged in oil. Garlic, even when dried, can contain spores of *Clostridium botulinum*. These spores are harmless in the presence of oxygen or in acidic environments. However, when garlic is placed in oil, it creates an anaerobic (oxygen-free) environment. This, combined with the low acidity of garlic, provides ideal conditions for the spores to germinate and produce botulinum toxin. This toxin is extremely potent and can cause severe illness or even death. Therefore, infusing oil with garlic requires careful handling and preservation techniques to prevent botulism. Commercial producers use specific processes to ensure safety, such as adding acids or using high-pressure processing. For home cooks, it's best to avoid storing garlic in oil at room temperature.
If you want to infuse oil with garlic flavor, use fresh garlic and refrigerate the oil immediately. Use the infused oil within a few days and discard any unused portion. Alternatively, purchase commercially prepared garlic-infused oils that have been processed to ensure safety.