The basic method for cooking pasta is to bring a large pot of salted water to a boil, add the pasta, and then cook it for the time indicated on the package, usually around 8-12 minutes for dried pasta and 3-5 minutes for fresh pasta. Drain the pasta and then toss it with your desired sauce or toppings.