如何将PPA添加到Ubuntu,Debian存储库?

Ubuntu and Debian are two popular Linux distributions. They are using deb and apt for package management by default. In default of repositories, there are a lot of different and rich package alternatives. We may need to add some external repositories. PPA is a protocol used to add repositories to the apt. It means personal package archives. Some can create a package and publish it through his own server. Then we can easily add this package and repository to our Linux system with PPA.

Ubuntu和Debian是两个流行Linux发行版。 他们默认使用debapt进行软件包管理。 在默认的存储库中,有很多不同的功能丰富的软件包可供选择。 我们可能需要添加一些外部存储库。 PPA是用于将存储库添加到apt的协议。 这意味着个人包裹档案。 有些人可以创建一个程序包,然后通过自己的服务器发布。 然后,我们可以使用PPA轻松地将此包和存储库添加到我们Linux系统中。

添加PPA (Add PPA)

We will use the add-apt-repository command for PPA based repositories.

我们将对基于PPA的存储库使用add-apt-repository命令。

$ sudo add-apt-repository ppa:webupd8team/java
  • add-apt-repository is our command to add

    add-apt-repository是我们添加的命令

  • ppa: specifies repository will be specified in PPA format

    ppa:指定存储库将以PPA格式指定

  • webupd8team/java is a repository name hosted at Launchpad

    webupd8team / java是启动板中托管的存储库名称

Add PPA
Add PPA
添加PPA

We can see from the command output that the added repository or PPA provides some information about it and then it adds the repository to the local system. After that, it updates all repositories including the newly added repository.

从命令输出中可以看到,添加的存储库或PPA提供了有关它的一些信息,然后将存储库添加到本地系统。 之后,它将更新所有存储库,包括新添加的存储库。

PPA清单 (PPA List)

Above we added Oracle Java repository to our sources.list.  PPA’s are generally published at https://launchpad.net

在上面,我们将Oracle Java存储库添加到了sources.list。 PPA通常在https://launchpad.net上发布

Add PPA
Add PPA
添加PPA
LEARN MORE  How To List All Repository Packages With Yum Command
了解更多信息如何使用Yum命令列出所有存储库软件包

翻译自: https://www.poftut.com/add-ppa-ubuntu-debian-repository/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值