What if we want to install a package that is not in the repositories? So, if I type
"apt-cache search chrome" I see a lot of chrome, but I'm not seeing a package called
chrome. I see chromium-browser that's the open source version of Chrome, and we can
install that by typing "sudo apt-get install chromium browser" but let's say I want
the actual Google Chrome. It's not under chrome, and it's not under Google Chrome either. We're going to see
that it wasn't able to access that package. So, what we're gonna do, we're gonna open
up Firefox, because that's the browser you're gonna have pre-installed on Ubuntu.
You are going to have Firefox it doesn't come with another browser pre-installed,
however you can install other web browsers. Now if I wanted to install
Midori, which is another web browser, I can check if there a version that I can install through
the repositories, and there is. I don't want to use Midori though, I want to use
Chrome. So, what we're gonna do is go to chrome.google.com, and when the page
loads it's going to allow us to download Chrome. I'm gonna go to download for personal
computers, and this is automatically picked up that we're on Linux. So, if you
click download Chrome it's gonna give you 4 options,
a 32bit.deb file, a 64bit.deb file, then also 32 & 64bit.rpm files.
On Linux you're not going to be using .rpm files, that is the package manager
for Red Hat,
and so that's a different Linux version all together. With Debian-Ubuntu
distributions, and in the first or second video I explain how Ubuntu was forked from
Debian, so Ubuntu uses the same package manager as Debain, which is .deb files or
apt package manager. So, apt package manager works with .deb files so we're
going to download the 64bit.deb file because we are working on a 64-bit
system, and a 64-bit installation. We're gonna click that accept button to
save the file. Now once the download completes, we can
change directory into our home/downloads directory, we can use the ls command
to see this file, and so how are going to install it, I mean you could open up file
manager, the downloads folder, and double-click this it's gonna open it up
with Software Center which is a Ubuntu's graphical package manager app, but we're
not going to do that because we're focusing on command line. So, how do you
install it from command line is by running the following command,
"sudo dpkg -i" for install, and then we're going to give it the file path.
Now we could go absolute and type home/nick/downloads, we're not going to do
that because that gets really old and boring really quick. We're gonna type in
the current directory look for
./-chrome-stable_current_amd64.deb and hit enter.
It's going to unpack this Debian package and it's going to install Chrome,and again
it's not going to pick up the application there, but we can type chrome,
no, google chrome. There we go and then we can launch chrome because it is installed.