Learn to manage software packages at the Linux command line.
Linux apt-get command summary with examples (3:42)
Videos can also be accessed from the YouTube Playlist.
Our sixty-fifth word, or command to memorize is
apt-get from our category
apt-get allows you to manage software
Recall from the last video on
dpkg we kicked off a high-level
discussion on package management. Well here we'll focus on another
tool used to update software directly from Internet repositories.
Before we start, it helps to think of commands as mini programs and
most follow this structure:
command -option(s) argument(s).
apt-get command has
over 30 options and the argument is typically the
software package name. The command syntax here is two layers:
apt-get [-options] update,
apt-get [-options] upgrade,
apt-get [-options] install package name.
Like most commands, help is available with double-dash
-d option downloads archives only, and
-y assumes 'yes' to all queries that
come to the user.
We'll keep it basic as these tasks are often left to administrators.
Make note, separate commands apply to two types of Linux
distributions, Debian-style is
here, and for Fedora it's
So why is
apt-get an important command?
Well, accessing online repositories is a vital task.
And now you know how to do that.
Okay, the best way to embed this in your memory is by typing in your own terminal window.
Find this on your Mac using a program called Terminal. On Linux use Terminal or Konsole, and currently Microsoft is adding this functionality to Windows.
Here we go. Let's keep it simple here and view the 15 different
commands run within
apt-get --help screen
to a file called
And then last, let's view it in
See, the 15, let's call them sub-commands.
update retrieves the list of packages,
upgrade is here,
install I mentioned, but also
Okay now you know how to use
And you know the syntax for commands, options and arguments.
One last tip about the
command. So next we'll cover an additional tool for Debian systems that
helps you find packages.
Okay, thanks for visiting today. I hope this was a helpful
introduction to the
For an overview of the 100 videos, the 8 quizzes, a cheat sheet, the categories and a Q&A section, visit:
This series about high-level summaries. We walk through installations in other tutorials on our YouTube Channel. Subscribe and check it out.
dpkgcommand, hit Back.
apt-cachecommand, click Next.