switch

Making the switch to Ubuntu. How to install PPAs

If you want instructions how to make a liveCD/liveUSB and how to install Ubuntu head – > here

What is a PPA?

Personal Package Archive, stuff that isn’t included by default in the OS, mostly developed by people not affiliated to the official developers of Ubuntu (in our case).  INSTALL PPAs WITH CARE! You’ve been warned.

First of all open the Terminal (CTRL + ALT + T)

Mostly everything you’ll do in the future will involve around these commands: 

Order of installing a PPA:

1) sudo add-apt-repository

2) sudo apt-get update

3) sudo apt-get install

What do they mean?

sudo – super user (root access). Everything power user-ish, like installing, updating through the terminal is involved with sudo.

apt – advanced packaging tool (it’s actually an interface). Everything with apt- prefix is a tool which uses apt. Why use apt? Because it’s the easiest way to install stuff on Linux, without scaring yourself to death by the new OS if you’re coming from Windows (like me) or Mac

sudo add-apt-repository – adds a repository to the OS, but doesn’t install it.

Example: sudo add-apt-repository http://ppa.launchpad.net/webupd8team/java/ubuntu

sudo apt-get update – updates your software. Including stuff you just installed

Example: sudo apt-get update

sudo apt-get install – yep, installs.

Example: sudo apt-get install oracle-java7-installer

 

A full step by step how to find and install a PPA

1) Finding. Good source for PPAs is https://launchpad.net/~webupd8team and follow http://www.webupd8.org/

2) Found something interesting, how to install it?

If I want to install Java7 on my machine

I go here https://launchpad.net/~webupd8team/+archive/java

Click the green Technical details about this PPA

Copy only and only http://ppa.launchpad.net/webupd8team/java/ubuntu

Open the Terminal (CTRL+ALT+T)

Write these lines:

1) sudo add-apt-repository http://ppa.launchpad.net/webupd8team/java/ubuntu

2) sudo apt-get update

3) Now you wonder what can I install ? See in http://ppa.launchpad.net/webupd8team/java/ubuntu below the Overview of published packages

In our case we install Java7, so we must see oracle-java7-installer

Then we write: sudo apt-get install oracle-java7-installer

4) Done! But anyway test with writing: java

If no error shows up but documentation, it works!

Ubuntu: PPAs you should have installed or have in mind