Ubuntu apt PPA源的定义及相关操作(搜索线上PPA源、查看本地PPA源、添加、修改、删除)

1. 前言

创作开始时间:2022年11月14日12:49:36

如题,简要探究PPA源的定义及相关操作(搜索线上PPA源、查看本地PPA源、添加、修改、删除)。

2. PPA源定义

PPA全称:Personal Package Archive,译为“个人软件包存档”。

In Ubuntu, the PPA is defined as Personal Package Archive, which is used to add or remove packages on a Debian-based system. PPA’s are built by individual persons to develop and update packages for Linux. There are several reasons why one might need to use PPA on a Linux system. Sometimes you would not find the official package of an item on the web, but you might find a personal package archive of that package. If you’re a software developer, you can contribute to the open-source community through the PPA. Using PPA’s is not harmful, and you can avoid harmful PPA’s with basic computing knowledge. You can use PPA to add or remove packages on the Ubuntu system.

3. 搜索ppa源

https://launchpad.net/上搜索软件名+ppa

例如:

在这里插入图片描述

在这里插入图片描述

4. 查看

ls /etc/apt/sources.list.d

5. 添加

sudo add-apt-repository ppa:ownername/projectname
sudo apt update

6. 修改

直接修改/etc/apt/sources.list.d/下对应的文件即可。

7. 删除

方法1:
使用sudo rm直接删除/etc/apt/sources.list.d/下对应的文件即可。

方法2:

sudo add-apt-repository -r ppa:ownername/projectname

8. 小结

基本上还是比较全面的cover了ppa相关操作。

创作结束时间:2022年11月14日13:00:43

9. 参考文献

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值