ubuntu - 是否可以将 Github 发布链接添加到 Ubuntu sources.list?

标签 ubuntu github repository apt ubuntu-18.04

我实际上重新安装了我的 Ubuntu,我需要大量的程序。当然,我想在最新版本中使用它。但是,Ubuntu 官方存储库通常包含旧版本的程序。所以我需要手动下载最新版本,例如来自 Github。

是否可以在 Ubuntu /etc/apt/sources.list 中添加条目可以从 Github 版本下载和自动更新程序?

就像是:
deb https://github.com/git/git/releases
任何帮助将不胜感激。

最佳答案

我不认为这是直接可能的,因为我刚刚发现:

  • https://github.com/rpatterson/github-apt-repos

  • The github-apt-repos utility currently does roughly the following:

    1. Download the *.deb files from the latest GitHub release for a git checkout from GitHub
    2. Make an APT repository from the released *.deb files
    3. Upload the APT repository to a special GitHub release which Debian/Ubuntu users can use to keep up-to-date.

    ...但它应该在服务器上运行,因此您不会在 PC 上执行此操作(除非您在 PC 上设置了 APT 存储库服务器,并且遇到了麻烦)。

    关于ubuntu - 是否可以将 Github 发布链接添加到 Ubuntu sources.list?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54194803/

    相关文章:

    javascript - 我可以使用什么策略只将部分代码加载到 github?

    svn - 使用 Tortoise 将本地 SVN 移动到 SVN 服务器

    git - git 克隆存储库的 "reset"命令是什么?

    linux - Trac 在哪里存储它的环境信息

    shell - 如何使用 shell 脚本切断所有子文件夹中文本文件中每一行的尾部?

    Git 如何将原始仓库的主分支 merge 到 fork 仓库的主分支?

    github - 如何重新运行 Github Actions?

    svn - 创建本地 SVN 分支

    ruby - 如何让 Rake 使用 RVM 的 Ruby?

    启动 avd 后 Android Studio 卡住