sh 将包从私有PPA添加到chroot并剥离对私有PPA的引用

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 将包从私有PPA添加到chroot并剥离对私有PPA的引用相关的知识,希望对你有一定的参考价值。

REPO_LINE="deb https://${LP_USER}:${PPA_PASSWORD}@${PRIVATE_PPA_URL} ${SUITE} main"
REPO_KEY_FINGERPRINT=832749327429CADB77842973ED72947203471037

# Add the private ppa to the system
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-add-repository "${REPO_LINE}"
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-key adv --keyserver keyserver.ubuntu.com --recv ${REPO_KEY_FINGERPRINT}
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-get update

# Install from private PPA HERE
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-get install -qqy awesome_package_but_super_secret

# Remove the repo
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-add-repository --remove "${REPO_LINE}"

# Delete the key (using the last 8 characters of the full fingerprint)
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-key list
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-key del ${REPO_KEY_FINGERPRINT:(-8)}
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-key list

# Delete backups that would reveal our private PPA
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" cat /etc/apt/sources.list
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" rm /etc/apt/sources.list.save
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" rm /etc/apt/trusted.gpg~

env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-get update
env DEBIAN_FRONTEND=noninteractive chroot "${MOUNTPOINT}" apt-get clean

以上是关于sh 将包从私有PPA添加到chroot并剥离对私有PPA的引用的主要内容,如果未能解决你的问题,请参考以下文章

使用 TOAD for Oracle 将包从一个数据库复制到另一个数据库

是否因为省略了依赖项而将包从 Stackage LTS 中排除?

SSIS 包从文件系统运行

sh 优化Web视频 - 压缩MP4并使用FFMPEG删除音频。用CRF 30编码为264,缩小到1920x1080,剥离音频

sh 脚本从xcode中的动态框架中剥离超出的架构,(只需添加脚本来构建阶段)

sh 启用deadsnakes PPA,安装Python 2.6,2.7,3.2和3.3,安装easy_install并进入这些版本