It's easy to make. For a person living alone three peppers, green, yellow and red. Cut them up and remove all the seeds. Three onions of a good size. Spanish or Videlia or just plain ole regular kind. Peel and chop into quarters. Get a small jar of crushed garlic or get fresh ones and peel them, chop them up into bits, or as I said buy the ready made kind. Get a blender, add water to about a quarter of the container and put in each ingredient individually, adding just a little bit of water each time and purée until it's a nice even consistency.
Put it in a Tupperware container and keep it in the fridge. This isn't something that should last in there for months or something. It will go bad. Also when using it don't wildly nilly put any spoon into the mix, like say take the same spoon you just used for something else to get the sofrito out. You don't want to make the mix a breeding ground for anything. If you use it regularly you will be running low soon enough and have to make more, but as I said in a sealed container you will be able to use it for a few weeks. I know some people make big batches and just freeze it in a bunch of small containers and take it out to thaw when they need it for cooking that day. Don't add new sofrito into a container with the old stuff either because again you don't want food poisoning. Clean out the container after it has run out.
Add other things to taste. As I said some people like to add cilantro, sometimes hot peppers depending. It's a great thing to have when preparing chicken, beef or pork and when put into ground beef makes for juicy meatloaf, burgers or meatballs with good flavor. You can sautée your meat for stews or soup in it along with other seasonings and it will make it tasty beyond words, same for Italian red sauces if you are making it with chicken or pork. When you make rice on the stove top you can again sautée the sofrito in what ever oil you like, just a tad and then put the rice in and it will add a nice flavor. Don't be afraid to go crazy with it I say, especially with meat. Add a lot. And as I said you can put it in scrambled eggs and it will really make them delicious. As stated I don't recommend eating it raw like a salsa. It's meant as an additive for cooking not to drizzle uncooked over anything.