What is the difference between AWS Marketplace and sudo apt-get install?
<p><em>I'm seeking <strong>objective</strong> answers, so that this is not closed as subjective. Question may be moved to a different site if required.</em></p>

<blockquote>
  <p>What is the difference between AWS Marketplace and <code>sudo apt-get install</code>, and how do I decide to choose one over the other?</p>
</blockquote>

<p>I noted that Amazon AWS has a marketplace with ready-to-deploy offerings like LAMP Stack from Bitnami. But tutorials often instruct you to create a blank EC2 instance, SSH into it, and manually install software using commands like <code>sudo apt-get install lamp-server^</code>.</p>

<p>Are they the same? <strong>What are the advantages and disadvantages of each method?</strong></p>

<p>If I get an offering from the AWS Marketplace, can I install other software to the same EC2 instance using either method? If there's a paid offering from AWS Marketplace that I used <code>sudo apt-get</code> to install, will Amazon charge me? <em>(They should, right? Or that will be a big loophole many will exploit.)</em></p>