Adding PPAs In Ubuntu (Using Terminal)

Abhishek Rawal
@abhishek-fg9tRh โ€ข Oct 22, 2024

We have covered <a href="https://www.crazyengineers.com/threads/adding-ppas-in-ubuntu.61390">Adding PPAs in Ubuntu</a> ,But that method seems to be consuming a lot of time.

We know that CLI can really save our precious time, so here's the simple tutorial explaining how-to add PPA from Terminal.

Suppose, I wanna download <a href="https://handbrake.fr/" target="_blank" rel="nofollow noopener noreferrer">HandBrake: Open Source Video Transcoder</a>Application from Official PPA of Handbrake.
PPAs are usually found in : <a href="https://launchpad.net/ubuntu/+ppas" target="_blank" rel="nofollow noopener noreferrer">Personal Package Archives : Ubuntu</a>

Go to Launchpad website & search for the Application you need to download, In this tutorial we will be adding Handbrake Official PPA.

Now, Open the Terminal & Type :

 sudo add-apt-repository APT-Line 

What is APT-Line ? Check out the image below :
22

So,
To Add "Handbrake" Official PPA, I have to type in Terminal as :

 sudo add-apt-repository ppa:stebbins/handbrake-releases 

& Press Enter.
Again two options in Terminal will pop, something like :
- Press "Enter" to ADD PPA ( or continue)
- Press "Ctrl+c" to leave.

Press "Enter" & the keyrings & repository.list will be downloaded to your computer.

Now, In Terminal Type :

 sudo apt-get update 

to update the repository.

And then, you can use :

 sudo apt-get install APP_NAME 

to Download the Application/File you want to install from modified repository.

Here as we are using PPA for handbrake, we'll download Handbrake by:

 sudo apt-get install handbrake-gtk 

๐Ÿ‘

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Kaustubh Katdare

    @thebigk • Jun 2, 2013

    Okay, why use Terminals for the PPAs when you've the GUI? Are there any advantages?

    Sorry, if the question is n00b!

  • Abhishek Rawal

    @abhishek-fg9tRh • Jun 3, 2013

    Kaustubh KatdareOkay, why use Terminals for the PPAs when you've the GUI? Are there any advantages?

    Using GUI, you have to click on [Ubuntu Software Center] then [Software Sources] then [Other Softwares] & then you have to add [APT Line], then Update the repository.Dang this is such a waste of time.
    However, I have even seen "GPG Error...No PUB Key" popping while adding PPA using GUI. (In Terminal I never get such kind of error)

    Using Terminal, Write 3 commands which takes hardly 10-12 seconds to Add PPA & update the repository.Simple-Easy-Less time consuming & thus recommended.