How To Remove Or Delete PPA In Ubuntu

http://itsfoss.com/how-to-remove-or-delete-ppas-quick-tip/

In an effort to install various apps in Ubuntu or other Linux distribution, we often add several PPA. Most of the times these PPAs are managed by a single developer as he might have created a certain app for personal amusement or as a hobby. Over times these PPAs might not be updated with latest version of operating system. This might create trouble when you try updating your OS. You may have other reasons as well for deleting or removing a PPA from the source list.

How to remove a PPA:

There are several ways to remove a PPA in Ubuntu. You can do it from Software Sources list, by removing the source files from the directory or the simplest way by using apt. There are different advantages of all of them. We’ll see all methods to delete a PPA in detail:

1. Remove a PPA from Software Sources via GUI:

This method is apt for those of you who prefer to use GUI over command line. While you are using Linux, I highly recommend that you use command line. But lets see how to remove PPA in graphical manner.

Step 1:

Go to Unity dash (by pressing the super or Windows key) and search for Software Sources:

Ubuntu Software Center Unity DashStep 2:

In the Software Sources, go to Other Software tab and choose the desire PPA from the list. Afterwards click on Remove to remove it:

Delete a PPA from Software Source

2. Remove a PPA using APT in terminal:

Mostly, you add a PPA using add-apt. We’ll use same add-apt to remove a PPA.Use the following command in terminal:

sudo add-apt-repository --remove ppa:PPA_Name/ppa

In the above command replace PPA_Name with the desired PPA name. By this time you might have realized that you need to know the exact PPA name to use this otherwise straight forward method.

3. Remove a PPA from the source list in terminal:

Alternatively, you can remove the PPA from sources list where these PPAs are stored. PPAs are store in the form of PPA_Name.list. Use the following command to see all the PPAs added in your system:

sudo ls /etc/apt/sources.list.d

Look for your desire PPA here and then remove the PPA using the following command:

sudo rm -i /etc/apt/sources.list.d/PPA_Name.list

4. Remove a PPA by using ppa-purge in terminal:

You might have noticed that in all the above three methods we only talked about deleting or removing a PPA. What about the applications installed using these PPAs? Will they be removed as a result of removing the PPA? The answer is NO. So this is when PPA purge comes in picture. It not only removes the PPA but also uninstalls all the programs installed by the PPA.

Install ppa-purge by using the following command:

sudo apt-get install ppa-purge

Now use it in following manner to purge the PPA:

sudo ppa-purge ppa-url

The URL of the PPA can be found in the Software Sources list.

I hope you’ll find at least one good method to delete or remove a PPA and uninstall the corresponding applications. You may want to check this post to know how to add or remove installed programs in Ubuntu. Cheers :)


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值