Hey guys, thanks for joining me again. In this video we're going to be going over the
package manager of Ubuntu, or how to manage the packages that have installed, or
that you want to install. So, how we do this is through a program called "apt-get".
So, in terminal if you type apt-get that is the program that we are
going to use to install applications. If you follow this with the term install,
this is the action that we want apt-get to perform. And then the file that we want
this action performed on is, for this video,
gonna be bluefish, which is a text editor that I don't want installed, but for
the purpose of this video I'm going to install it. Now if you hit enter your're going to
notice it is it's going to tell you that you do not have permission to use that
program. So, again this is where sudo comes into play.
So, "sudo !!"
enter. It is going to show us that while for me, for this system it says these
were automatically installed and that we don't need them, down here we see the following
extra packages will be installed and it's going to install bluefish-data and
bluefish-plugins, which are two different packages that bluefish needs. And it will also
tell us how much will be downloaded, and how much space will be used on the disc
after the application is installed. So, we're going to type "y" for yes and hit
enter. Now it's gonna connect to the repositories of Ubuntu, so while it does
that I'm going to explain what that means. So, Ubuntu has repositories set up
that have indexes and package files, and it has indexes of those package files. So,
this allows us to run the command
apt-get and install packages from the repositories. Now there are some programs
that aren't in the repositories, and we'll go over those in a moment. For the sake of this
specific action, bluefish is in the repositories and I knew the name of the
package that I wanted to install before I ran the command, so I could just type
"sudo apt-get install bluefish" and this installs bluefish to my computer. And when this
completes I can now hit the super key and type in bluefish. It hasn't found it yet. There
is a bug with this version of Ubuntu where the dash isn't always updated. If I
type in bluefish from the terminal, we can see that I have bluefish installed. So, that's how
you install programs. Now let's say we want to remove a program. We do that in a very
similar way. I'm gonna type sudo apt-get remove bluefish. So, with this command we're using
the program apt-get, the action we're performing is remove, and the
package the action is performed on is bluefish. "y" for yes I do
want to uninstall this, and it's going to uninstall the package. What if we want to
install a program and we're not sure of the exact name of it?