-
2022-02-18 10:13:48
自动方式:
sudo pacman-mirrors -i -c China -m rank
手动方式:
sudo vim /etc/pacman.d/mirrorlist
编辑内容,找一个最快的替换进去:
Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch Server = http://mirrors.163.com/archlinux/$repo/os/$arch Server = http://mirrors.hust.edu.cn/archlinux/$repo/os/$arch Server = http://run.hit.edu.cn/archlinux/$repo/os/$arch Server = http://ftp.kaist.ac.kr/ArchLinux/$repo/os/$arch Server = http://mirrors.hustunique.com/archlinux/$repo/os/$arch Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch Server = http://mirror.premi.st/archlinux/$repo/os/$arch Server = http://mirror.its.dal.ca/archlinux/$repo/os/$arch Server = http://mirror.de.leaseweb.net/archlinux/$repo/os/$arch Server = http://mirror.clibre.uqam.ca/archlinux/$repo/os/$arch
执行:
sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
更多相关内容 -
编译 pacman 源代码
2021-05-15 15:50:33[haifeng@arch pacman-4.0.3]$ ./configurechecking build system type... x86_64-unknown-linux-gnuchecking host system type... x86_64-unknown-linux-gnuchecking for a BSD-compatible install... /usr/bin/ins...[haifeng@arch pacman-4.0.3]$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gawk... (cached) gawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.28.0
checking for libcurl >= version 7.19.4... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking for gawk... (cached) gawk
checking for gcc option to accept ISO C99... -std=gnu99
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ranlib... (cached) ranlib
checking for python2.7... python2.7
checking for bash... /bin/bash
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for fabs in -lm... yes
checking for archive_read_data in -larchive... yes
checking whether to link with libssl... yes
checking for MD5_Final in -lssl... yes
checking whether to link with libgpgme... yes
checking for gpgme_check_version in -lgpgme... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/tcp.h usability... yes
checking netinet/tcp.h presence... yes
checking for netinet/tcp.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mnttab.h usability... no
checking sys/mnttab.h presence... no
checking for sys/mnttab.h... no
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking sys/ucred.h usability... no
checking sys/ucred.h presence... no
checking for sys/ucred.h... no
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for inline... inline
checking for int64_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uid_t in sys/types.h... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... yes
checking PATH_MAX defined... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for library containing getmntent... none required
checking whether lstat correctly handles trailing slash... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for working strcoll... yes
checking for dup2... yes
checking for getcwd... yes
checking for geteuid... yes
checking for getmntinfo... no
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for realpath... yes
checking for regcomp... yes
checking for rmdir... yes
checking for setenv... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... yes
checking for strndup... yes
checking for strrchr... yes
checking for strsep... yes
checking for strstr... yes
checking for strtol... yes
checking for swprintf... yes
checking for tcflush... yes
checking for wcwidth... yes
checking for uname... yes
checking filesystem statistics type... checking for getmntinfo... (cached) no
checking for getmntent... (cached) yes
struct statvfs
checking for struct statvfs.f_flag... yes
checking for struct statfs.f_flags... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether gcc -std=gnu99 accepts -fvisibility=internal... yes
checking for -fgnu89-inline... yes
checking for du... /usr/bin/du
checking for asciidoc... no
checking for building documentation... yes (warning : asciidoc not installed)
checking for doxygen... no
checking for doxygen... no, disabled by configure
checking for debug mode request... no
checking whether to use git version if available... no, disabled by configure
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating lib/libalpm/Makefile
config.status: creating lib/libalpm/po/Makefile.in
config.status: creating src/pacman/Makefile
config.status: creating src/pacman/po/Makefile.in
config.status: creating src/util/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/po/Makefile.in
config.status: creating doc/Makefile
config.status: creating etc/Makefile
config.status: creating test/pacman/Makefile
config.status: creating test/pacman/tests/Makefile
config.status: creating test/util/Makefile
config.status: creating contrib/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating lib/libalpm/po/POTFILES
config.status: creating lib/libalpm/po/Makefile
config.status: creating src/pacman/po/POTFILES
config.status: creating src/pacman/po/Makefile
config.status: creating scripts/po/POTFILES
config.status: creating scripts/po/Makefile
pacman:
Build information:
source code location : .
prefix : /usr/local
sysconfdir : /usr/local/etc
conf file : /usr/local/etc/pacman.conf
localstatedir : /usr/local/var
database dir : /usr/local/var/lib/pacman/
cache dir : /usr/local/var/cache/pacman/pkg/
compiler : gcc -std=gnu99
preprocessor flags :
compiler flags : -g -O2 -Wall
defines : -DHAVE_CONFIG_H
library flags : -lgpgme -lssl -larchive -lm
linker flags :
Architecture : x86_64
Host Type : x86_64-unknown-linux-gnu
Filesize command : stat -c %s
In-place sed command : sed -i
libalpm version : 7.0.3
libalpm version info : 7:3:0
pacman version : 4.0.3
using git version : no
Directory and file information:
root working directory : /
package extension : .pkg.tar.gz
source pkg extension : .src.tar.gz
build script name : PKGBUILD
Compilation options:
Use libcurl : yes
Use GPGME : yes
Use OpenSSL : yes
Run make in doc/ dir : yes (warning : asciidoc not installed)
Doxygen support : no
debug support : no
-
pacman源添加及yaourt安装
2018-01-13 19:37:481.添加源 源,是软件源的简称,是互联网上存放...软件包工具,是使用这些源的工具,多是终端里的一种命令,如apt-get 、yum、dpkg、pacman等,在这些工具中,分为高级和低级,低级工具(dpkg、rpm)执行安装删除等...1.添加源
源,是软件源的简称,是互联网上存放软件包和库的服务器,这些服务器一般都是由官方维护,不少高校、互联网公司等权威机构有自己的镜像源,也有开发者自己的社区软件源,这里的软件比较常用,但暂时还没有被官方收入。
软件包工具,是使用这些源的工具,多是终端里的一种命令,如apt-get 、yum、dpkg、pacman等,在这些工具中,分为高级和低级,低级工具(dpkg、rpm)执行安装删除等任务,高级工具(apt-get、yum、pacman)提供依赖关系解决等功能。每种工具都有相对应的软件包格式、相对应的源。
pacman源的设置在/etc/pacman.conf和/etc/pacman.d/mirrorlist里, 如果有内容可以全部删除,添加内容如下:
Server = http://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch Server = http://mirrors.163.com/archlinux/$repo/os/$arch Server = http://mirrors.hust.edu.cn/archlinux/$repo/os/$arch Server = http://run.hit.edu.cn/archlinux/$repo/os/$arch Server = http://ftp.kaist.ac.kr/ArchLinux/$repo/os/$arch Server = http://mirrors.hustunique.com/archlinux/$repo/os/$arch Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch Server = http://mirror.premi.st/archlinux/$repo/os/$arch Server = http://mirror.its.dal.ca/archlinux/$repo/os/$arch Server = http://mirror.de.leaseweb.net/archlinux/$repo/os/$arch Server = http://mirror.clibre.uqam.ca/archlinux/$repo/os/$arch
在/etc/pacman.conf文件中最后一行添加如下内容:
# USTC [archlinuxcn] SigLevel = Optional TrustedOnly Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
2.安装yaourt
pacman -S yaourt
终端中执行sudo pacman -Syu 进行更新到此,就可以用pacman和yaourt下载安装软件了。
-
pacman一键更换国内源
2021-04-09 16:16:46使用如下命令一键换成国内源: sudo pacman-mirrors -c China 以下是切换成功提示: ::INFO Downloading mirrors from repo.manjaro.org ::INFO User generated mirror list ::-----------------------------------...安装好Manjaro之后使用pacman速度慢还容易失败。使用如下命令一键换成国内源:
sudo pacman-mirrors -c China
以下是切换成功提示:
::INFO Downloading mirrors from repo.manjaro.org ::INFO User generated mirror list ::------------------------------------------------------------ ::INFO Custom mirror file saved: /var/lib/pacman-mirrors/custom-mirrors.json ::INFO Using default mirror file ::INFO Querying mirrors - This may take some time 0.580 China : https://mirrors.huaweicloud.com/manjaro/ 0.402 China : http://mirrors.huaweicloud.com/manjaro/ 0.397 China : https://mirrors.aliyun.com/manjaro/ 0.432 China : https://mirrors.ustc.edu.cn/manjaro/ ..... China : https://mirrors.tuna.tsinghua.edu.cn/manjaro/ 0.609 China : https://mirrors.tuna.tsinghua.edu.cn/manjaro/ 1.066 China : https://mirrors.sjtug.sjtu.edu.cn/manjaro/ ::INFO Writing mirror list ::China : https://mirrors.aliyun.com/manjaro/arm-stable ::China : https://mirrors.huaweicloud.com/manjaro/arm-stable ::China : https://mirrors.ustc.edu.cn/manjaro/arm-stable ::China : https://mirrors.tuna.tsinghua.edu.cn/manjaro/arm-stable ::China : https://mirrors.sjtug.sjtu.edu.cn/manjaro/arm-stable ::China : https://mirrors.tuna.tsinghua.edu.cn/manjaro/arm-stable ::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
-
msys2 pacman常用命令以及添加国内源加速pacman
2020-03-04 14:52:51pacman是arclinux中的软件管理...文章目录常见命令安装软件更新系统卸载软件搜索软件查询软件信息软件包组清理缓存最常用的pacman命令小结给MSYS2 添加源添加清华源和中科大源参考文章 常见命令 安装软件 pacman ... -
Linux中配置pacman镜像源(manjaro)
2021-07-20 17:40:42sudo pacman -S vim 二、编辑mirrorlist文件 在终端中输入以下命令编辑mirrorlist文件 sudo vim sudo vi /etc/pacman.d/mirrorlist 输入以后显示如下: //看到第一行:“Server = http…”(是我后来加上的) ... -
google-pacman源代码
2010-06-05 16:55:35google-pacman源代码 google-pacman源代码 google-pacman源代码 -
PACMAN游戏源代码完整版
2010-06-04 17:48:49PACMAN游戏源代码完整版 PACMAN游戏源代码完整版 PACMAN游戏源代码完整版 PACMAN游戏源代码完整版 -
Manjaro 软件源及软件管理相关操作【pacman、pacman-mirrors】整理
2021-05-16 11:14:53前言好多天没折腾那些流行的 Linux 发行版了,今天抽了点时间体验了一下distrowatch 上排名第一的Manjaro,尝试了几个不同桌面环境的版本,总体来说颜值跟性能都是不错的,加上依靠 Arch 的最丰富软件源,比较适合... -
pacman更换中国源
2018-04-30 16:37:07在终端输入pacman-mirror -c China即可换成国内镜像原有的被保存在/var/lib/pacman-mirrors/custom-mirrors.json现在的被保存在/etc/pacman.d/mirrorlist另外pacman的下载缓存在/var/cache/pacman... -
PACMAN代码
2016-03-17 21:46:54自己写的pacman代码,初学者,欢迎点评 -
Java-Pacman-Game:Java Pacman游戏源代码-java source code
2021-03-25 07:14:42Java吃豆人游戏 Java Pacman游戏的源代码 根据2条款BSD许可证 -
ArchLinux更换pacman下载源
2020-07-23 11:23:44修改/etc/pacman.d/mirrorlist文件 在最上面添加 # China Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch Server = https://mirrors.zju.edu.cn/archlinux/$repo/os/$arch Server = ... -
Java pacman2000吃豆子源代码
2021-03-16 06:22:04Java内核的j2me游戏吃豆子pacman2000源代码,图像用的比较多,源码也是完整的,学习Java游戏开发的话,那就有必要看下了,来自国外的游戏源码,代码结构还是蛮规范的,有空了就看下吧。(本游戏非Android版,j2me... -
scratch编程项目源代码文件案例素材-[PacMan].zip
2022-05-16 10:38:30scratch编程项目源代码文件案例素材-[PacMan].zip -
人工智能作业pacman吃豆人python源代码
2018-10-20 04:53:02人工智能伯克利大学经典作业pacman吃豆人python源代码 -
msys2 修改国内源加速pacman
2019-06-15 11:27:44/etc/pacman.d/mirrorlist.mingw32 Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686 /etc/pacman.d/mirrorlist.mingw64 Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64... -
pacman4console:基于控制台的吃豆人游戏
2021-06-17 09:07:10好吧,基本上,我厌倦了在浏览器上启用 Flash 以便我可以玩 Pacman。 那天晚上,我非常无聊。 所以我决定制作我自己的 Pacman ......用于控制台。 许可信息 有关 GNU/GPL 版本 2 的详细信息,请参阅COPYING 。 编译/... -
ArchLinux国内源&pacman常用命令
2014-04-20 13:30:351)在/etc/pacman.d/mirrorlist设置安装源,视情况加入: Server = http://mirrors.163.com/archlinux/$repo/os/i686 Server = http://mirrors.sohu.com/archlinux/$repo/os/i686 Server = ... -
pacman_happy9pi_pythontkinter_pythongui_pythonPACMAN_pacmangui_源
2021-09-29 13:23:16使用python gui编写的pacman游戏。 -
pacman换国内源
2021-04-05 21:05:59参考地址 -
scratch编程项目源代码文件案例素材-吃豆人-PacMan.zip
2022-05-16 11:44:45scratch编程项目源代码文件案例素材-吃豆人-PacMan.zip -
scratch编程项目源代码文件案例素材-[pacman2].zip
2022-05-16 10:38:31scratch编程项目源代码文件案例素材-[pacman2].zip -
44--[PacMan].zip源码scratch2.0 3.0编程项目源文件源码案例素材源代码
2022-04-17 13:04:2044--[PacMan].zip源码scratch2.0 3.0编程项目源文件源码案例素材源代码44--[PacMan].zip源码scratch2.0 3.0编程项目源文件源码案例素材源代码44--[PacMan].zip源码scratch2.0 3.0编程项目源文件源码案例素材源代码44... -
77--[食豆人 pacman].zip源码scratch2.0 3.0编程项目源文件源码案例素材源代码
2022-04-17 03:02:4877--[食豆人 pacman].zip源码scratch2.0 3.0编程项目源文件源码案例素材源代码77--[食豆人 pacman].zip源码scratch2.0 3.0编程项目源文件源码案例素材源代码77--[食豆人 pacman].zip源码scratch2.0 3.0编程项目... -
MSYS2添加国内源
2021-04-27 23:27:431、打开MSYS2软件内的\etc\pacman.d\ 中3个文件,分别进行修改 mirrorlist.mingw32 mirrorlist.mingw64 mirrorlist.msys 2、用编辑器打开这3个文件,加入国内的源,会优先进行访问 # 号代表注释 mirrorlist.mingw... -
MSYS2更换国内源
2020-09-29 01:17:57今天安装了Msys64,但是Msys64使用的国外源实在太慢,必须更新为...利用Windows资源管理器,打开D:\msys64\etc\pacman.d。在这个路径下有3个配置文件,分别为:mirrorlist.mingw32、mirrorlist.mingw64和mirrorlist.... -
manjaro 配置国内镜像源
2019-01-18 12:31:22来源:...1.配置镜像源: sudo pacman-mirrors -i -c China -m rank 2.设置 archlinuxcn 源: sudo nano /etc/pacman.conf 添加以下内容 [archlinuxcn] SigLevel = Optional TrustedO...