The most common way to prevent bad smells in the home is by using containers which air can flow through. This allows for the release of odors without any potential for them to build up.
A second option is to use an exhaust fan or vent which will remove any bad air that builds up inside.
A third option would be to make sure you are regularly cleaning your home, including the trash cans and kitchen sinks.