0
5
Login
Code
Issues
Pull requests
Events
Packages
39ee5d809a1d6ec0dcea28538b146cfc30e1852b
README

腾讯云软件源使用示例

badge badge badge

编程语言

Maven

示例仓库

Gradle

示例仓库

Python

pip install -i https://mirrors.cloud.tencent.com/pypi/simple coscmd
pip install -r requirements.txt -i https://mirrors.cloud.tencent.com/pypi/simple
  • 全局设置
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple

PHP

  • Dockerfile 中使用

  • 全局配置

    • 全局配置:composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/

    • 取消配置:composer config repo.packagist composer https://mirrors.cloud.tencent.com/composer/

  • 项目配置(项目根目录下执行)

    • 项目配置:composer config repo.packagist composer https://mirrors.cloud.tencent.com/composer/

    • 取消配置:composer config --unset repos.packagist

NPM

npm config set registry https://mirrors.cloud.tencent.com/npm/

YARN

yarn config set registry  https://mirrors.cloud.tencent.com/npm/

操作系统

Ubuntu

24

sed -Ei "s@(security|ports|archive).ubuntu.com@mirrors.cloud.tencent.com@g" /etc/apt/sources.list.d/ubuntu.sources

22 及以下

sed -Ei "s@(security|ports|archive).ubuntu.com@mirrors.cloud.tencent.com@g" /etc/apt/sources.list

Debian

bookworm

sed -i "s@http://deb.debian.org/debian@http://mirrors.cloud.tencent.com/debian@g" /etc/apt/sources.list.d/debian.sources

bullseye

sed -i "s@http://deb.debian.org/debian@http://mirrors.tencent.com/debian@g" /etc/apt/sources.list  

buster

sed -i "s@http://deb.debian.org/debian-security@http://mirrors.cloud.tencent.com/debian-security@g" /etc/apt/sources.list
sed -i "s@http://deb.debian.org/debian@http://mirrors.cloud.tencent.com/debian-archive/debian@g" /etc/apt/sources.list

stretch

cat <<EOF > /etc/apt/sources.list
deb http://mirrors.tencent.com/debian-archive/debian stretch main
#deb http://mirrors.tencent.com/debian-archive/debian stretch-backports main
#deb http://mirrors.tencent.com/debian-archive/debian stretch-backports-sloppy main
#deb http://mirrors.tencent.com/debian-archive/debian stretch-proposed-updates main
deb http://mirrors.tencent.com/debian-archive/debian-security stretch/updates main
EO

Alpine

sed -i 's@dl-cdn.alpinelinux.org@mirrors.cloud.tencent.com@g' /etc/apk/repositories

About

No description, topics, or website provided.

Release
0

Tag
0
Language
Markdown60.3%
Dockerfile38.9%
gitignore0.4%
Others0.4%