From db2d701c62dd8ff7990fcfbec75a3fd36bbbd838 Mon Sep 17 00:00:00 2001 From: z4yx Date: Mon, 16 Mar 2020 10:22:42 +0800 Subject: [PATCH] Voidlinux help --- _posts/help/1970-01-01-voidlinux.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 _posts/help/1970-01-01-voidlinux.md diff --git a/_posts/help/1970-01-01-voidlinux.md b/_posts/help/1970-01-01-voidlinux.md new file mode 100644 index 0000000..5df25a5 --- /dev/null +++ b/_posts/help/1970-01-01-voidlinux.md @@ -0,0 +1,19 @@ +--- +category: help +layout: help +mirrorid: voidlinux +--- + +# Voidlinux 镜像使用帮助 + +使用如下命令替换为本镜像: + +``` +# mkdir -p /etc/xbps.d +# cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ +# sed -i 's|https://alpha.de.repo.voidlinux.org|https://mirrors.tuna.tsinghua.edu.cn/voidlinux|g' /etc/xbps.d/*-repository-*.conf +``` + +之后可用 `xbps-query -L` 检查是否正确替换。 + +参考[官方教程](https://docs.voidlinux.org/xbps/repositories/mirrors/changing.html)。 \ No newline at end of file