Linux – “sudo apt-get install xyz” command

aptitudelinux

Can someone explain what actions this command will perform?

sudo apt-get install xyz

Best Answer

Indeed, lets break this down.

  • sudo (some parameters): Instructs the operating system to execute the parameters as a command, but do so with administrative (usually root) privileges.
  • apt-get (some parameters): Runs the package manager called apt-get on your machine. The parameters are a command for apt-get to run.
  • install xyz: These parameters to apt-get instruct apt-get to find and install a package called xyz.

So, as a whole, this command attempts to find and install package/program xyz on your machine and does so as root if you are able to authenticate as such.

Related Question